]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - tests/stress/arguments-callee-uninitialized.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / arguments-callee-uninitialized.js
diff --git a/tests/stress/arguments-callee-uninitialized.js b/tests/stress/arguments-callee-uninitialized.js
new file mode 100644 (file)
index 0000000..6865042
--- /dev/null
@@ -0,0 +1,11 @@
+function foo(e) {
+    if (e) {
+        arguments[0]--;
+        return arguments.callee.apply(this, arguments);
+    }
+}
+noInline(foo);
+
+for (var i = 0; i < 10000; i++)
+    foo(1);
+