summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/external-arguments-mutate-callee.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/arguments/external-arguments-mutate-callee.js')
-rw-r--r--js/src/jit-test/tests/arguments/external-arguments-mutate-callee.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/arguments/external-arguments-mutate-callee.js b/js/src/jit-test/tests/arguments/external-arguments-mutate-callee.js
new file mode 100644
index 0000000000..9cb4af6f1c
--- /dev/null
+++ b/js/src/jit-test/tests/arguments/external-arguments-mutate-callee.js
@@ -0,0 +1,13 @@
+function foo() {
+ arguments.callee = {name: "mutated"};
+ return bar(arguments);
+}
+
+function bar(x) {
+ assertEq(x.callee.name, "mutated");
+ assertEq(arguments.callee.name, "bar");
+}
+
+for (var i = 0; i < 100; i++) {
+ foo();
+}