MCPcopy Index your code
hub / github.com/nodejs/node / runInThisContext

Method runInThisContext

lib/vm.js:133–139  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

131 }
132
133 runInThisContext(options) {
134 const { breakOnSigint, args } = getRunInContextArgs(null, options);
135 if (breakOnSigint && process.listenerCount('SIGINT') > 0) {
136 return sigintHandlersWrap(super.runInContext, this, args);
137 }
138 return ReflectApply(super.runInContext, this, args);
139 }
140
141 runInContext(contextifiedObject, options) {
142 validateContext(contextifiedObject);

Callers 15

testNotFoundErrorsFunction · 0.95
testLoaderFunction · 0.95
testProduceConsumeFunction · 0.95
testRejectInvalidFunction · 0.95
testFunction · 0.95
testInvalidFunction · 0.95
runInThisContextFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
console_colors.jsFile · 0.80
test-vm-basic.jsFile · 0.80

Calls 3

getRunInContextArgsFunction · 0.85
sigintHandlersWrapFunction · 0.85
listenerCountMethod · 0.80

Tested by 1

testFunction · 0.76