summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/compat/dyn_import_reject.js4
-rw-r--r--cli/tests/testdata/compat/dyn_import_reject.out2
2 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/testdata/compat/dyn_import_reject.js b/cli/tests/testdata/compat/dyn_import_reject.js
new file mode 100644
index 000000000..f9a99f0da
--- /dev/null
+++ b/cli/tests/testdata/compat/dyn_import_reject.js
@@ -0,0 +1,4 @@
+import("./foobar.js").catch((e) => {
+ console.log(e);
+ console.log(e.code);
+});
diff --git a/cli/tests/testdata/compat/dyn_import_reject.out b/cli/tests/testdata/compat/dyn_import_reject.out
new file mode 100644
index 000000000..6d78135b2
--- /dev/null
+++ b/cli/tests/testdata/compat/dyn_import_reject.out
@@ -0,0 +1,2 @@
+TypeError: Cannot load module "file:///[WILDCARD]/testdata/compat/foobar.js".
+ERR_MODULE_NOT_FOUND