summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug893732.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/src/jit-test/tests/ion/bug893732.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug893732.js b/js/src/jit-test/tests/ion/bug893732.js
new file mode 100644
index 0000000000..fe7f0d6a42
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug893732.js
@@ -0,0 +1,14 @@
+
+var arr = new Int8Array(100);
+function f(a) {
+ for(var i=0; i<30; i++) {
+ x = a[85.3];
+ }
+}
+f(arr);
+
+var buf = serialize(new Date(NaN));
+var n = -(8.64e15 + 1);
+var nbuf = serialize(n);
+for (var j = 0; j < 8; j++)
+ buf[j + (0.00000000123)] = nbuf[j];