summaryrefslogtreecommitdiff
path: root/test/parallel/test-util-types.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-util-types.js')
-rw-r--r--test/parallel/test-util-types.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/parallel/test-util-types.js b/test/parallel/test-util-types.js
index aa45d1604b..9248698968 100644
--- a/test/parallel/test-util-types.js
+++ b/test/parallel/test-util-types.js
@@ -1,4 +1,4 @@
-// Flags: --harmony-bigint
+// Flags: --harmony-bigint --experimental-vm-modules
/* global SharedArrayBuffer */
'use strict';
const common = require('../common');
@@ -126,3 +126,11 @@ for (const [ value, _method ] of [
assert.deepStrictEqual(yup, expected[testedFunc]);
}
}
+
+(async () => {
+ const m = new vm.Module('');
+ await m.link(() => 0);
+ m.instantiate();
+ await m.evaluate();
+ assert.ok(types.isModuleNamespaceObject(m.namespace));
+})();