@sebastianwessel/quickjs v3.0.0
@sebastianwessel/quickjs / loadQuickJs
Function: loadQuickJs()
loadQuickJs(
variant):Promise<{module:QuickJSWASMModule;runSandboxed: <T>(sandboxedFunction,sandboxOptions) =>Promise<T>; }>
Defined in: loadQuickJs.ts:18
Loads the QuickJS module and returns a sandbox execution function.
Parameters
variant
QuickJSSyncVariant
Options for loading the QuickJS module. Defaults to '@jitl/quickjs-ng-wasmfile-release-sync'.
Returns
Promise<{ module: QuickJSWASMModule; runSandboxed: <T>(sandboxedFunction, sandboxOptions) => Promise<T>; }>
An object containing the runSandboxed function and the loaded module.