summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_8_5/regress/regress-584355.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/js1_8_5/regress/regress-584355.js')
-rw-r--r--js/src/tests/js1_8_5/regress/regress-584355.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/src/tests/js1_8_5/regress/regress-584355.js b/js/src/tests/js1_8_5/regress/regress-584355.js
new file mode 100644
index 000000000..4ddfe65d3
--- /dev/null
+++ b/js/src/tests/js1_8_5/regress/regress-584355.js
@@ -0,0 +1,7 @@
+var actual;
+var expect = "function f() { ff (); }";
+function fun() {
+ (new Function ("function ff () { actual = '' + ff. caller; } function f () { ff (); } f ();")) ();
+}
+fun();
+reportCompare(expect, actual, "");