summaryrefslogtreecommitdiff
path: root/test/es-module/test-esm-dynamic-import.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/es-module/test-esm-dynamic-import.js')
-rw-r--r--test/es-module/test-esm-dynamic-import.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/es-module/test-esm-dynamic-import.js b/test/es-module/test-esm-dynamic-import.js
index 8a92ac41ed..1fc22f1d98 100644
--- a/test/es-module/test-esm-dynamic-import.js
+++ b/test/es-module/test-esm-dynamic-import.js
@@ -42,6 +42,9 @@ function expectFsNamespace(result) {
// For direct use of import expressions inside of CJS or ES modules, including
// via eval, all kinds of specifiers should work without issue.
(function testScriptOrModuleImport() {
+ common.expectWarning('ExperimentalWarning',
+ 'The ESM module loader is experimental.');
+
// Importing another file, both direct & via eval
// expectOkNamespace(import(relativePath));
expectOkNamespace(eval(`import("${relativePath}")`));