summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug533705.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/auto-regress/bug533705.js')
-rw-r--r--js/src/jit-test/tests/auto-regress/bug533705.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/auto-regress/bug533705.js b/js/src/jit-test/tests/auto-regress/bug533705.js
new file mode 100644
index 0000000000..b112b9e903
--- /dev/null
+++ b/js/src/jit-test/tests/auto-regress/bug533705.js
@@ -0,0 +1,25 @@
+// Binary: cache/js-dbg-64-61b1c094b729-linux
+// Flags: -j
+//
+function mk() {
+ return (function () {});
+}
+
+function f() {
+ var j = 55;
+
+ var f = function () {
+ return j;
+ }
+
+ var g = function() {
+ }
+
+ var a = [ mk(), f, g, mk(), mk() ];
+
+ for (var i = 0; i < 5; ++i) {
+ a[i].p = 99;
+ }
+}
+
+f();