summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/modules/bug-1764239.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/modules/bug-1764239.js')
-rw-r--r--js/src/jit-test/tests/modules/bug-1764239.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/modules/bug-1764239.js b/js/src/jit-test/tests/modules/bug-1764239.js
new file mode 100644
index 0000000000..2beb2a8959
--- /dev/null
+++ b/js/src/jit-test/tests/modules/bug-1764239.js
@@ -0,0 +1,13 @@
+let module1 = registerModule('module1', parseModule(
+ `import {} from "module2";
+ import {} from "module3";`));
+
+let module2 = registerModule('module2', parseModule(
+ `await 1;`));
+
+let module3 = registerModule('module3', parseModule(
+ `throw 1;`));
+
+moduleLink(module1);
+moduleEvaluate(module1).catch(() => 0);
+drainJobQueue();