summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1365518.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/src/jit-test/tests/ion/bug1365518.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug1365518.js b/js/src/jit-test/tests/ion/bug1365518.js
new file mode 100644
index 0000000000..30dc060c96
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug1365518.js
@@ -0,0 +1,13 @@
+function init() {
+ foo = () => 1;
+ bar = () => 2;
+ foo.__proto__ = function() {};
+}
+function test() {
+ var arr = [foo, bar];
+ for (var i = 0; i < 1300; i++) {
+ assertEq(arr[i % 2](), i % 2 + 1);
+ }
+}
+init();
+test();