summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1138740.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/ion/bug1138740.js')
-rw-r--r--js/src/jit-test/tests/ion/bug1138740.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug1138740.js b/js/src/jit-test/tests/ion/bug1138740.js
new file mode 100644
index 000000000..195717c97
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug1138740.js
@@ -0,0 +1,12 @@
+
+with({}){}
+x = new Int8Array(1)
+function f(y) {
+ x[0] = y
+}
+f()
+f(3)
+f(7)
+x.buffer;
+f(0);
+assertEq(x[0], 0);