summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/closures/setname-inner-heavy.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/closures/setname-inner-heavy.js')
-rw-r--r--js/src/jit-test/tests/closures/setname-inner-heavy.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/closures/setname-inner-heavy.js b/js/src/jit-test/tests/closures/setname-inner-heavy.js
new file mode 100644
index 000000000..cf66c61d3
--- /dev/null
+++ b/js/src/jit-test/tests/closures/setname-inner-heavy.js
@@ -0,0 +1,18 @@
+actual = '';
+expected = 'undefined,';
+
+function f() {
+ (eval("\
+ (function () {\
+ for (var z = 0; z < 2; ++z) {\
+ x = ''\
+ }\
+ })\
+ "))();
+}
+this.__defineSetter__("x", eval)
+f()
+appendToActual(x);
+
+
+assertEq(actual, expected)