Searched refs:SourceTextModule (Results 1 – 22 of 22) sorted by relevance
9 const { SourceTextModule, createContext, Module } = require('vm');12 const m = new SourceTextModule('');19 new SourceTextModule();30 new SourceTextModule('', invalidOptions);41 const m = new SourceTextModule('');53 const m = new SourceTextModule('');62 const m = new SourceTextModule('');71 const m = new SourceTextModule('');79 const m = new SourceTextModule('');88 const m = new SourceTextModule('');[all …]
9 const { SourceTextModule } = require('vm');12 const foo = new SourceTextModule('export default 5;');16 const bar = new SourceTextModule('import five from "foo"; fiveResult = five');32 const foo = new SourceTextModule('export default 5');36 const mod = new SourceTextModule(`58 const foo = new SourceTextModule(`63 const bar = new SourceTextModule(`110 const rootModule = new SourceTextModule(sourceMap.root, {117 const mod = new SourceTextModule(sourceMap[specifier], {
9 SourceTextModule,21 const m = new SourceTextModule(38 const m = new SourceTextModule(`51 const m = new SourceTextModule('while (true) {}');62 const m1 = new SourceTextModule('1', { context: context1 });64 const m2 = new SourceTextModule('2', { context: context1 });66 const m3 = new SourceTextModule('3', { context: context2 });73 const m = new SourceTextModule('1', { context });113 const m = new SourceTextModule('');
8 const { SourceTextModule } = require('vm');11 const m = new SourceTextModule('const a = 1');14 new SourceTextModule('const a = 1', { cachedData });17 new SourceTextModule('differentSource', { cachedData });24 const m = new SourceTextModule('const a = 1');
8 const { Script, SourceTextModule } = require('vm');11 const m = new SourceTextModule(`29 const foo = new SourceTextModule('export const a = 1;');47 const m = new SourceTextModule('globalThis.fooResult = import("foo")', {62 const m = new SourceTextModule('globalThis.fooResult = import("foo")', {
10 const { SourceTextModule } = require('vm');13 const m = new SourceTextModule('globalThis.importResult = import("");', {15 const m = new SourceTextModule('');
7 const { SourceTextModule } = require('vm');10 const m = new SourceTextModule('globalThis.importMeta = import.meta;', {31 new SourceTextModule('', {
9 const { SourceTextModule } = require('vm');16 const m = new SourceTextModule('count += 1;');28 const m = new SourceTextModule('throw new Error()');
6 const { SourceTextModule } = require('vm');10 const m = new SourceTextModule('export const a = 1; export var b = 2');
6 const { SyntheticModule, SourceTextModule } = require('vm');15 const m = new SourceTextModule(`
29 const module = new vm.SourceTextModule(
279 const m = new vm.SourceTextModule('');
417 Module, SourceTextModule, SyntheticModule,420 module.exports.SourceTextModule = SourceTextModule;
261 class SourceTextModule extends Module { field in Module468 SourceTextModule, property
345 // Create a Module by constructing a new `vm.SourceTextModule` object. This353 const bar = new vm.SourceTextModule(`384 return new vm.SourceTextModule(`417 // Create a Module by constructing a new `vm.SourceTextModule` object. This425 const bar = new vm.SourceTextModule(`456 return new vm.SourceTextModule(`619 ## Class: `vm.SourceTextModule`631 The `vm.SourceTextModule` class provides the [Source Text Module Record][] as634 ### `new vm.SourceTextModule(code[, options])` argument654 * `module` {vm.SourceTextModule}[all …]
175 'vm.SourceTextModule': 'vm.html#vm_class_vm_sourcetextmodule',
2857 …b.com/nodejs/node/commit/2d86696f35)] - **test**: augment tests for SourceTextModule (Andrew Eisen…2953 …odejs/node/commit/0579784eab)] - **test**: adding test coverage for SourceTextModule.evaluate (Kay…
1745 …tps://github.com/nodejs/node/commit/6d88f0fef7)] - **vm**: refactor SourceTextModule (Gus Caplan) …3066 …ub.com/nodejs/node/commit/b5b234deff)] - **test**: add testcase for SourceTextModule custom inspec…
840 …7564a4837)] - **(SEMVER-MINOR)** **vm**: add code cache support for SourceTextModule (Gus Caplan) …
1275 …om/nodejs/node/commit/836fba52ea)] - **test**: improve coverage of `SourceTextModule` getters (Jua…4012 …ithub.com/nodejs/node/commit/92c7e0620f)] - **test**: check args on SourceTextModule cachedData (J…
1648 …odejs/node/commit/f55b4f1cdf)] - **test**: adding test coverage for SourceTextModule.evaluate (Kay…2757 …om/nodejs/node/commit/9a88fe4d5e)] - **vm**: rename vm.Module to vm.SourceTextModule (Gus Caplan) …