summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/closures/setname-no-pop.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/closures/setname-no-pop.js')
-rw-r--r--js/src/jit-test/tests/closures/setname-no-pop.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/closures/setname-no-pop.js b/js/src/jit-test/tests/closures/setname-no-pop.js
new file mode 100644
index 000000000..c07d81b8a
--- /dev/null
+++ b/js/src/jit-test/tests/closures/setname-no-pop.js
@@ -0,0 +1,16 @@
+actual = '';
+expected = '';
+
+(function () {
+ var y;
+ (eval("(function () {\
+ for (var x = 0; x < 3; ++x) {\
+ ''.replace(/a/, (y = 3))\
+ }\
+ });\
+ "))()
+})()
+
+
+
+assertEq(actual, expected)