summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/modules/bug-1680878-a.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/modules/bug-1680878-a.js')
-rw-r--r--js/src/jit-test/tests/modules/bug-1680878-a.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/modules/bug-1680878-a.js b/js/src/jit-test/tests/modules/bug-1680878-a.js
new file mode 100644
index 0000000000..e86b67d261
--- /dev/null
+++ b/js/src/jit-test/tests/modules/bug-1680878-a.js
@@ -0,0 +1,8 @@
+// |jit-test| error: SyntaxError
+// Remove once Top-level await is enabled by default: Bug #1681046
+
+r = parseModule(`
+ for await (var x of this) {}
+`);
+r.declarationInstantiation();
+r.evaluation();