Searched refs:SyntheticModule (Results 1 – 8 of 8) sorted by relevance
/third_party/node/test/parallel/ |
D | test-vm-module-synthetic.js | 6 const { SyntheticModule, SourceTextModule } = require('vm'); 11 const s = new SyntheticModule(['x'], () => { 30 const s = new SyntheticModule([], () => { 41 const s = new SyntheticModule([], () => {}); 51 const s = new SyntheticModule([], () => {}); 61 const s = new SyntheticModule([], () => {}); 71 SyntheticModule.prototype.setExport.call({}, 'foo'); class
|
D | test-vm-module-basic.js | 10 SyntheticModule, 97 const m = new SyntheticModule([], () => {}, { context }); 129 assert.throws(() => new SyntheticModule(undefined, () => {}, {}), { 140 assert.throws(() => new SyntheticModule(['x', 'x'], () => {}, {}), { 148 assert.throws(() => new SyntheticModule([], undefined, {}), { 157 assert.throws(() => new SyntheticModule([], () => {}, null), {
|
/third_party/node/lib/ |
D | vm.js | 417 Module, SourceTextModule, SyntheticModule, 421 module.exports.SyntheticModule = SyntheticModule;
|
/third_party/node/lib/internal/vm/ |
D | module.js | 398 class SyntheticModule extends Module { class 469 SyntheticModule, property
|
/third_party/node/doc/api/ |
D | vm.md | 747 ## Class: `vm.SyntheticModule` 761 The `vm.SyntheticModule` class provides the [Synthetic Module Record][] as 770 const module = new vm.SyntheticModule(['default'], function() { 778 ### `new vm.SyntheticModule(exportNames, evaluateCallback[, options])` argument 794 Creates a new `SyntheticModule` instance. 817 const m = new vm.SyntheticModule(['x'], () => { 830 const m = new vm.SyntheticModule(['x'], () => {
|
/third_party/node/doc/changelogs/ |
D | CHANGELOG_V13.md | 1772 …github.com/nodejs/node/commit/d78e3176dd)] - **src**: fix crash with SyntheticModule#setExport (Mi…
|
D | CHANGELOG_V12.md | 1120 …github.com/nodejs/node/commit/e11a376677)] - **src**: fix crash with SyntheticModule#setExport (Mi…
|
D | CHANGELOG_V14.md | 3984 …it/4423304ac4)] - **vm**: throw error when duplicated exportNames in SyntheticModule (himself65) […
|