/// <summary>
/// Creates a new runtime.
/// </summary>
/// <param name="attributes">The attributes of the runtime to be created.</param>
/// <param name="version">The version of the runtime to be created.</param>
/// <param name="threadServiceCallback">The thread service for the runtime. Can be null.</param>
/// <returns>The runtime created.</returns>
public static JavaScriptRuntime Create(JavaScriptRuntimeAttributes attributes, JavaScriptRuntimeVersion version, JavaScriptThreadServiceCallback threadServiceCallback)
{
JavaScriptRuntime handle;
Native.ThrowIfError(Native.JsCreateRuntime(attributes, version, threadServiceCallback, out handle));
return(handle);
}