Bug 720070 - Add missing test for bug 720070. r=needed-tests
authorChristian Holler <choller@mozilla.com>
Wed, 20 Mar 2013 03:58:09 +0100
changeset 125563 893a57ee94bfb94b9b00f2d19886304056604f0f
parent 125562 4bb793ac828d774696733ebd507a685d9a644500
child 125564 129ff7d529688df59b415ce4bbad8749350d64d7
push id24459
push useremorley@mozilla.com
push dateWed, 20 Mar 2013 11:46:36 +0000
treeherdermozilla-central@1d6fe70c79c5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersneeded-tests
bugs720070
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 720070 - Add missing test for bug 720070. r=needed-tests
js/src/jit-test/tests/basic/bug720070.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/basic/bug720070.js
@@ -0,0 +1,6 @@
+var bytes = [0xff, 0xf7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]; // big-endian
+bytes.reverse(); // if testing on little-endian
+var result = new Float64Array(new Uint8Array(bytes).buffer)[0];
+
+// Check that this doesn't crash
+isNaN(result + 0);