summaryrefslogtreecommitdiff
path: root/tests/testdata/run/fix_dynamic_import_errors.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/run/fix_dynamic_import_errors.js')
-rw-r--r--tests/testdata/run/fix_dynamic_import_errors.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/testdata/run/fix_dynamic_import_errors.js b/tests/testdata/run/fix_dynamic_import_errors.js
new file mode 100644
index 000000000..1d7be37e0
--- /dev/null
+++ b/tests/testdata/run/fix_dynamic_import_errors.js
@@ -0,0 +1,7 @@
+import("../dynamic_import/b.js").catch(() => {
+ console.log("caught import error from b.js");
+});
+
+import("../dynamic_import/c.js").catch(() => {
+ console.log("caught import error from c.js");
+});