summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testStaticEvalScope.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/testStaticEvalScope.js')
-rw-r--r--js/src/jit-test/tests/basic/testStaticEvalScope.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testStaticEvalScope.js b/js/src/jit-test/tests/basic/testStaticEvalScope.js
new file mode 100644
index 0000000000..6850f3bf4c
--- /dev/null
+++ b/js/src/jit-test/tests/basic/testStaticEvalScope.js
@@ -0,0 +1,3 @@
+// Test that static eval scopes don't mess with statement nested scope logic in
+// the frontend.
+eval("if (true) { { let y; } } else {}")