public static void JS_SetInterruptHandler(JSRuntime rt, JSInterruptHandler cb, IntPtr opaque) { var fn = Marshal.GetFunctionPointerForDelegate(cb); JS_SetInterruptHandler(rt, fn, opaque); }
public static extern void JS_FreeRuntime(JSRuntime rt);
public static extern unsafe void JS_ComputeMemoryUsage(JSRuntime rt, JSMemoryUsage *s);
private static extern unsafe void JS_SetInterruptHandler(JSRuntime rt, IntPtr cb, IntPtr opaque);
public static extern void JS_FreeAtomRT(JSRuntime rt, JSAtom v);
public static extern JSPayloadHeader JSB_FreePayloadRT(JSRuntime rt, JSValue val);
public static extern void JS_FreeValueRT(JSRuntime rt, JSValue v);
public static extern JSContext JS_NewContext(JSRuntime rt);
public static extern JS_BOOL JS_IsLiveObject(JSRuntime rt, JSValueConst obj);
public static extern JSValue JS_DupValueRT(JSRuntime rt, JSValueConst v);
public static extern int JS_ExecutePendingJob(JSRuntime rt, out JSContext pctx);
public static extern void JS_RunGC(JSRuntime rt);
public static extern int JS_IsRegisteredClass(JSRuntime rt, JSClassID class_id);
public static extern IntPtr JS_GetRuntimeOpaque(JSRuntime rt);
public static extern JSClassID __JSB_NewClass(JSRuntime rt, JSClassID class_id, [MarshalAs(UnmanagedType.LPStr)] string class_name, IntPtr finalizer);
public static extern void JS_SetRuntimeOpaque(JSRuntime rt, IntPtr opaque);
public static extern void JS_SetModuleLoaderFunc(JSRuntime rt, IntPtr module_normalize, IntPtr module_loader, IntPtr opaque);
public static extern void JS_SetHostPromiseRejectionTracker(JSRuntime rt, IntPtr cb, IntPtr opaque);
public static void JS_SetHostPromiseRejectionTracker(JSRuntime rt, JSHostPromiseRejectionTracker cb, IntPtr opaque) { var fn = Marshal.GetFunctionPointerForDelegate(cb); JS_SetHostPromiseRejectionTracker(rt, fn, opaque); }