summaryrefslogtreecommitdiff
path: root/test/parallel/test-internal-module-wrap.js
diff options
context:
space:
mode:
authorGus Caplan <me@gus.host>2019-10-04 20:08:00 -0700
committerRich Trott <rtrott@gmail.com>2019-10-14 14:25:38 -0700
commitf9caee986cae09cd4cb47e0a02a5b8672ab2c16d (patch)
tree5f5171ac3a976dfe81ee0667bc2f49afc1921ec1 /test/parallel/test-internal-module-wrap.js
parent7991b57cfdba96ddcd6553c8233cd6392e16a42a (diff)
downloadnode-new-f9caee986cae09cd4cb47e0a02a5b8672ab2c16d.tar.gz
vm: add Synthetic modules
- Refactor vm.SourceTextModule (again) - Add vm.Module abstract superclass - Add vm.SyntheticModule Refs: https://heycam.github.io/webidl/#synthetic-module-records PR-URL: https://github.com/nodejs/node/pull/29864 Reviewed-By: Guy Bedford <guybedford@gmail.com>
Diffstat (limited to 'test/parallel/test-internal-module-wrap.js')
-rw-r--r--test/parallel/test-internal-module-wrap.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-internal-module-wrap.js b/test/parallel/test-internal-module-wrap.js
index 116a300543..b0cc3a1cf0 100644
--- a/test/parallel/test-internal-module-wrap.js
+++ b/test/parallel/test-internal-module-wrap.js
@@ -10,8 +10,8 @@ const { ModuleWrap } = internalBinding('module_wrap');
const { getPromiseDetails, isPromise } = internalBinding('util');
const setTimeoutAsync = require('util').promisify(setTimeout);
-const foo = new ModuleWrap('export * from "bar"; 6;', 'foo');
-const bar = new ModuleWrap('export const five = 5', 'bar');
+const foo = new ModuleWrap('foo', undefined, 'export * from "bar"; 6;', 0, 0);
+const bar = new ModuleWrap('bar', undefined, 'export const five = 5', 0, 0);
(async () => {
const promises = foo.link(() => setTimeoutAsync(1000).then(() => bar));