Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.36 KB

File metadata and controls

44 lines (29 loc) · 1.36 KB

quickjs-emscriptenquickjs-emscripten-coreReadme | Exports


quickjs-emscripten / quickjs-emscripten-core / ContextOptions

Interface: ContextOptions

Options for creating a QuickJSContext or QuickJSAsyncContext Pass to QuickJSRuntime#newContext.

Contents

Properties

intrinsics?

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,
  }
})

Source

packages/quickjs-emscripten-core/src/types.ts:229


Generated using typedoc-plugin-markdown and TypeDoc