summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testPutOnEmptyArgsObject.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/testPutOnEmptyArgsObject.js')
-rw-r--r--js/src/jit-test/tests/basic/testPutOnEmptyArgsObject.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testPutOnEmptyArgsObject.js b/js/src/jit-test/tests/basic/testPutOnEmptyArgsObject.js
new file mode 100644
index 0000000000..b230897857
--- /dev/null
+++ b/js/src/jit-test/tests/basic/testPutOnEmptyArgsObject.js
@@ -0,0 +1,16 @@
+var g;
+
+function h() {
+ return arguments.length;
+}
+
+function f() {
+ var args = arguments;
+ g = function() { return h.apply(this, args); }
+}
+
+for (var i = 0; i < 10; ++i) {
+ f();
+}
+
+assertEq(g(), 0);