summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/self-hosting/invoke-self-hosted-function.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/src/jit-test/tests/self-hosting/invoke-self-hosted-function.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/self-hosting/invoke-self-hosted-function.js b/js/src/jit-test/tests/self-hosting/invoke-self-hosted-function.js
new file mode 100644
index 0000000000..88893c58bd
--- /dev/null
+++ b/js/src/jit-test/tests/self-hosting/invoke-self-hosted-function.js
@@ -0,0 +1,9 @@
+var callees = [function a() {}, function b() {}, function c() {}, function d() {}, Array.prototype.forEach];
+
+function f() {
+ for (var i = 0; i < callees.length; ++i) {
+ callees[i](function(){});
+ }
+}
+
+f(); \ No newline at end of file