summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/cacheir/bug1500255.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/cacheir/bug1500255.js')
-rw-r--r--js/src/jit-test/tests/cacheir/bug1500255.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/cacheir/bug1500255.js b/js/src/jit-test/tests/cacheir/bug1500255.js
new file mode 100644
index 0000000000..41b83fc02b
--- /dev/null
+++ b/js/src/jit-test/tests/cacheir/bug1500255.js
@@ -0,0 +1,11 @@
+
+setJitCompilerOption("offthread-compilation.enable", 0);
+setJitCompilerOption("baseline.warmup.trigger", 0);
+setJitCompilerOption("ion.warmup.trigger", 0);
+
+foo();
+
+function foo() {
+ Array.prototype.__proto__ = null;
+ Array.prototype[1] = 'bar';
+}