interface CreateContextOptions
Properties Jump to heading
optional
Jump to headingname: string | undefined
Human-readable name of the newly created context.
optional
Jump to headingorigin: string | undefined
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.
optional
Jump to headingcodeGeneration: { strings?: boolean | undefined; wasm?: boolean | undefined; } | undefined
optional
Jump to headingmicrotaskMode: "afterEvaluate" | undefined
If set to afterEvaluate
, microtasks will be run immediately after the script has run.