Home
last modified time | relevance | path

Searched refs:runInThisContext (Results 1 - 14 of 14) sorted by relevance

/third_party/node/test/parallel/
H A Dtest-vm-static-this.js28 const result = vm.runInThisContext('\'passed\';');
33 vm.runInThisContext('throw new Error(\'test\');');
37 vm.runInThisContext('hello = 2');
49 const baz = vm.runInThisContext(code);
57 vm.runInThisContext('f()');
H A Dtest-vm-new-script-this-context.js29 const result = script.runInThisContext(script);
35 script.runInThisContext(script);
40 script.runInThisContext(script);
51 script.runInThisContext(script);
59 script.runInThisContext(script);
H A Dtest-repl-syntax-error-handling.js65 vm.runInThisContext('haf!@##&$!@$*!@', { displayErrors: false });
70 vm.runInThisContext('console.log(10)', { displayErrors: false });
H A Dtest-vm-cached-data.js50 assert.strictEqual(script.runInThisContext()(), 'original');
72 assert.strictEqual(script.runInThisContext()(), 'invalid_1');
H A Dtest-vm-low-stack-space.js11 return vm.runInThisContext('() => 42')();
H A Dtest-vm-not-strict.js2 // Importing common would break the execution. Indeed running `vm.runInThisContext` alters the global context
14 var item2 = vm.runInThisContext(`
36 assert.strictEqual(typeof unusedB, 'number'); // Declared within runInThisContext
H A Dtest-vm-basic.js57 // vm.runInThisContext
59 const result = vm.runInThisContext(
95 assert.throws(() => vm.runInThisContext(script, filename), checkErr);
H A Dtest-vm-options-validation.js69 script.runInThisContext(options);
/third_party/node/test/common/wpt/
H A Dworker.js3 const { runInThisContext } = require('vm');
24 runInThisContext(workerData.initScript);
27 runInThisContext(workerData.harness.code, {
62 runInThisContext(scriptToRun.code, { filename: scriptToRun.filename });
/third_party/node/lib/
H A Dvm.js116 runInThisContext(options) {
293 function runInThisContext(code, options) { function
297 return createScript(code, options).runInThisContext(options);
381 runInThisContext,
H A Drepl.js122 const { runInThisContext, runInContext } = vm.Script.prototype;
599 result = ReflectApply(runInThisContext, script, [scriptOptions]);
/third_party/node/benchmark/vm/
H A Drun-in-this-context.js22 vm.runInThisContext('0', options);
H A Dcompile-script-in-isolate-cache.js34 script.runInThisContext();
/third_party/typescript/tests/baselines/reference/
H A Dparserharness.js46 vm.runInThisContext(typescriptServiceFile, 'typescriptServices.js');
2134 vm.runInThisContext(typescriptServiceFile, 'typescriptServices.js');

Completed in 10 milliseconds