summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/cacheir/bug1502143.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/cacheir/bug1502143.js')
-rw-r--r--js/src/jit-test/tests/cacheir/bug1502143.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/cacheir/bug1502143.js b/js/src/jit-test/tests/cacheir/bug1502143.js
new file mode 100644
index 0000000000..2cc7bc1f55
--- /dev/null
+++ b/js/src/jit-test/tests/cacheir/bug1502143.js
@@ -0,0 +1,15 @@
+
+setJitCompilerOption("baseline.warmup.trigger", 10);
+setJitCompilerOption("ion.warmup.trigger", 100);
+
+main();
+
+function main() {
+ new Uint8Array(1024).buffer;
+ var b = [];
+ b[10000] = 1;
+ [].concat(b)
+ var a2 = new Int32Array(2);
+ b.__proto__ = a2;
+ [].concat(b)
+}