Home
last modified time | relevance | path

Searched refs:SourceTextModule (Results 1 – 22 of 22) sorted by relevance

/third_party/node/test/parallel/
Dtest-vm-module-errors.js9 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 …]
Dtest-vm-module-link.js9 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], {
Dtest-vm-module-basic.js9 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('');
Dtest-vm-module-cached-data.js8 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');
Dtest-vm-module-dynamic-import.js8 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")', {
Dtest-vm-module-dynamic-namespace.js10 const { SourceTextModule } = require('vm');
13 const m = new SourceTextModule('globalThis.importResult = import("");', {
15 const m = new SourceTextModule('');
Dtest-vm-module-import-meta.js7 const { SourceTextModule } = require('vm');
10 const m = new SourceTextModule('globalThis.importMeta = import.meta;', {
31 new SourceTextModule('', {
Dtest-vm-module-reevaluate.js9 const { SourceTextModule } = require('vm');
16 const m = new SourceTextModule('count += 1;');
28 const m = new SourceTextModule('throw new Error()');
Dtest-util-inspect-namespace.js6 const { SourceTextModule } = require('vm');
10 const m = new SourceTextModule('export const a = 1; export var b = 2');
Dtest-vm-module-synthetic.js6 const { SyntheticModule, SourceTextModule } = require('vm');
15 const m = new SourceTextModule(`
Dtest-vm-timeout-escape-promise-module.js29 const module = new vm.SourceTextModule(
Dtest-util-types.js279 const m = new vm.SourceTextModule('');
/third_party/node/lib/
Dvm.js417 Module, SourceTextModule, SyntheticModule,
420 module.exports.SourceTextModule = SourceTextModule;
/third_party/node/test/sequential/
Dtest-vm-timeout-escape-promise-module-2.js29 const module = new vm.SourceTextModule(
/third_party/node/lib/internal/vm/
Dmodule.js261 class SourceTextModule extends Module { field in Module
468 SourceTextModule, property
/third_party/node/doc/api/
Dvm.md345 // Create a Module by constructing a new `vm.SourceTextModule` object. This
353 const bar = new vm.SourceTextModule(`
384 return new vm.SourceTextModule(`
417 // Create a Module by constructing a new `vm.SourceTextModule` object. This
425 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][] as
634 ### `new vm.SourceTextModule(code[, options])` argument
654 * `module` {vm.SourceTextModule}
[all …]
/third_party/node/tools/doc/
Dtype-parser.mjs175 'vm.SourceTextModule': 'vm.html#vm_class_vm_sourcetextmodule',
/third_party/node/doc/changelogs/
DCHANGELOG_V11.md2857 …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…
DCHANGELOG_V12.md1745 …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…
DCHANGELOG_V13.md840 …7564a4837)] - **(SEMVER-MINOR)** **vm**: add code cache support for SourceTextModule (Gus Caplan) …
DCHANGELOG_V14.md1275 …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…
DCHANGELOG_V10.md1648 …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) …