Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CreateContextOptions

Index

Properties

Optional codeGeneration

codeGeneration: object

Type declaration

  • Optional strings?: boolean

    If set to false any calls to eval or function constructors (Function, GeneratorFunction, etc) will throw an EvalError.

    default

    true

  • Optional wasm?: boolean

    If set to false any attempt to compile a WebAssembly module will throw a WebAssembly.CompileError.

    default

    true

Optional name

name: string

Human-readable name of the newly created context.

default

'VM Context i' Where i is an ascending numerical index of the created context.

Optional origin

origin: string

Corresponds to the newly created context for display purposes. The origin should be formatted like a URL, but with only the scheme, host, and port (if necessary), like the value of the url.origin property of a URL object. Most notably, this string should omit the trailing slash, as that denotes a path.

default

''

Generated using TypeDoc