If set to afterEvaluate
, microtasks will be run immediately after the script has run.
interface
vm.CreateContextOptions
interface CreateContextOptions
- microtaskMode?: 'afterEvaluate'
- 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 theurl.origin
property of a URL object. Most notably, this string should omit the trailing slash, as that denotes a path.