quickjs-emscripten • quickjs-emscripten-core • Readme | Exports
quickjs-emscripten / quickjs-emscripten-core / ContextOptions
Options for creating a QuickJSContext or QuickJSAsyncContext Pass to QuickJSRuntime#newContext.
intrinsics?:
Intrinsics
What built-in objects and language features to enable? If unset, the default intrinsics will be used. To omit all intrinsics, pass an empty array.
To remove a specific intrinsic, but retain the other defaults, override it from DefaultIntrinsics
const contextWithoutDateOrEval = runtime.newContext({
intrinsics: {
...DefaultIntrinsics,
Date: false,
}
})
packages/quickjs-emscripten-core/src/types.ts:229
Generated using typedoc-plugin-markdown and TypeDoc