summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/modules/tla-many-vars.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/modules/tla-many-vars.js')
-rw-r--r--js/src/jit-test/tests/modules/tla-many-vars.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/modules/tla-many-vars.js b/js/src/jit-test/tests/modules/tla-many-vars.js
new file mode 100644
index 0000000000..de2e813805
--- /dev/null
+++ b/js/src/jit-test/tests/modules/tla-many-vars.js
@@ -0,0 +1,15 @@
+a = [];
+for (i = 0; i < 1000; ++i) {
+ a.push("x" + i);
+}
+
+// Sync
+parseModule(`
+ let ${a.join(",")};
+ `);
+
+// Async
+parseModule(`
+ let ${a.join(",")};
+ await 1;
+ `);