зеркало из https://github.com/mozilla/gecko-dev.git
Bug 720070 - Add missing test for bug 720070. r=needed-tests
This commit is contained in:
Родитель
d4b4e6c241
Коммит
6bc2bd5ca9
|
@ -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);
|
Загрузка…
Ссылка в новой задаче