温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/vm/RunningCodeInNewContextOptions
点击访问原文链接

Node vm.RunningCodeInNewContextOptions TypeScript interface | API Reference | Bun

Node vm.RunningCodeInNewContextOptions TypeScript interface | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/node:vm/RunningCodeInNewContextOptionsPbreakOnSigintPcachedDataPcolumnOffsetPcontextCodeGenerationPcontextNamePcontextOriginPdisplayErrorsPfilenamePimportModuleDynamicallyPlineOffsetPmicrotaskModePtimeout

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:vm/RunningCodeInNewContextOptionsPbreakOnSigintPcachedDataPcolumnOffsetPcontextCodeGenerationPcontextNamePcontextOriginPdisplayErrorsPfilenamePimportModuleDynamicallyPlineOffsetPmicrotaskModePtimeout

interface

vm.RunningCodeInNewContextOptionsinterface RunningCodeInNewContextOptionsbreakOnSigint?: boolean

If true, the execution will be terminated when SIGINT (Ctrl+C) is received. Existing handlers for the event that have been attached via process.on('SIGINT') will be disabled during script execution, but will continue to work after that. If execution is terminated, an Error will be thrown.

cachedData?: ArrayBufferViewArrayBufferLike>

Provides an optional data with V8's code cache data for the supplied source.

columnOffset?: number

Specifies the column number offset that is displayed in stack traces produced by this script.

contextCodeGeneration?: { strings: boolean; wasm: boolean }contextName?: string

Human-readable name of the newly created context.

contextOrigin?: string

Origin corresponding 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.

displayErrors?: boolean

When true, if an Error occurs while compiling the code, the line of code causing the error is attached to the stack trace.

filename?: string

Specifies the filename used in stack traces produced by this script.

importModuleDynamically?: number | DynamicModuleLoaderScript>

Used to specify how the modules should be loaded during the evaluation of this script when import() is called. This option is part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see Support of dynamic import() in compilation APIs.

lineOffset?: number

Specifies the line number offset that is displayed in stack traces produced by this script.

microtaskMode?: 'afterEvaluate'

If set to afterEvaluate, microtasks will be run immediately after the script has run.

timeout?: number

Specifies the number of milliseconds to execute code before terminating execution. If execution is terminated, an Error will be thrown. This value must be a strictly positive integer.

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

Node vm.RunningCodeInNewContextOptions TypeScript interface | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for interface node:vm.RunningCodeInNewContextOptions | Bun