internal static extern JavaScriptErrorCode JsGetContextOfObject(JavaScriptValue obj, out JavaScriptContext context);
internal static extern JavaScriptErrorCode JsSetContextData(JavaScriptContext context, IntPtr data);
internal static extern JavaScriptErrorCode JsSetCurrentContext(JavaScriptContext context);
internal static extern JavaScriptErrorCode JsGetRuntime(JavaScriptContext context, out JavaScriptRuntime runtime);
internal static extern JavaScriptErrorCode JsCreateContext(JavaScriptRuntime runtime, out JavaScriptContext newContext);
internal static extern JavaScriptErrorCode JsGetCurrentContext(out JavaScriptContext currentContext);
/// <summary> /// Initializes a new instance of the <see cref="Scope"/> struct. /// </summary> /// <param name="context">The context to create the scope for.</param> public Scope(JavaScriptContext context) { disposed = false; previousContext = Current; Current = context; }
internal static extern JavaScriptErrorCode JsContextRelease(JavaScriptContext reference, out uint count);