Home
last modified time | relevance | path

Searched refs:SyntheticModule (Results 1 – 8 of 8) sorted by relevance

/third_party/node/test/parallel/
Dtest-vm-module-synthetic.js6 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
Dtest-vm-module-basic.js10 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/
Dvm.js417 Module, SourceTextModule, SyntheticModule,
421 module.exports.SyntheticModule = SyntheticModule;
/third_party/node/lib/internal/vm/
Dmodule.js398 class SyntheticModule extends Module { class
469 SyntheticModule, property
/third_party/node/doc/api/
Dvm.md747 ## 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/
DCHANGELOG_V13.md1772 …github.com/nodejs/node/commit/d78e3176dd)] - **src**: fix crash with SyntheticModule#setExport (Mi…
DCHANGELOG_V12.md1120 …github.com/nodejs/node/commit/e11a376677)] - **src**: fix crash with SyntheticModule#setExport (Mi…
DCHANGELOG_V14.md3984 …it/4423304ac4)] - **vm**: throw error when duplicated exportNames in SyntheticModule (himself65) […