Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
bug720070.js
blob: 859b0b8af817f142a890cda75ec9227a3db2cd55 [
file
] [
log
] [
blame
]
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
);