Bug 539553: adding one more test case for the new on-trace arguments.length LIR, no_r=me
authorDavid Mandelin <dmandelin@mozilla.com>
Thu, 14 Jan 2010 18:12:54 -0800
changeset 37692 a39e0b5578645dd64e11a4939a9de3ca9ff8b08b
parent 37691 aba69ed5c41d80d5344475dd3a42eb92a3d16efe
child 37693 5c06d8cc50b00fd0420b5c9172ebe90d6722ec4b
push idunknown
push userunknown
push dateunknown
bugs539553
milestone1.9.3a1pre
Bug 539553: adding one more test case for the new on-trace arguments.length LIR, no_r=me
js/src/trace-test/tests/basic/bug539553-3.js
new file mode 100644
--- /dev/null
+++ b/js/src/trace-test/tests/basic/bug539553-3.js
@@ -0,0 +1,11 @@
+function g(x) {
+    assertEq(arguments.length, 1);
+    assertEq(x.length, 4);
+}
+
+function f() {
+    for (var i = 0; i < 9; i++)
+        g(arguments);
+}
+
+f(1, 2, 3, 4);