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

Function runInThisContext

lib/vm.js:314–319  ·  view source on GitHub ↗
(code, options)

Source from the content-addressed store, hash-verified

312}
313
314function runInThisContext(code, options) {
315 if (typeof options === 'string') {
316 options = { filename: options };
317 }
318 return createScript(code, options).runInThisContext(options);
319}
320
321function compileFunction(code, params, options = kEmptyObject) {
322 validateString(code, 'code');

Callers 1

worker.jsFile · 0.85

Calls 2

createScriptFunction · 0.85
runInThisContextMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…