Index: test/mjsunit/regress/regress-2596.js |
diff --git a/test/mjsunit/regress/regress-2596.js b/test/mjsunit/regress/regress-2596.js |
index e7006085a1ab21f357e07621a103a68167e45975..a1a0af3b00b392120a957cc4d4fe293dafd96a63 100644 |
--- a/test/mjsunit/regress/regress-2596.js |
+++ b/test/mjsunit/regress/regress-2596.js |
@@ -27,9 +27,11 @@ |
// Flags: --allow-natives-syntax |
-var bytes = new Uint8Array([ |
- 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f]); // kHoleNaN |
-var doubles = new Float64Array(bytes.buffer); |
+var ab = new ArrayBuffer(8); |
+var i_view = new Int32Array(ab); |
+i_view[0] = %GetHoleNaNUpper() |
+i_view[1] = %GetHoleNaNLower(); |
+var doubles = new Float64Array(ab); // kHoleNaN |
assertTrue(isNaN(doubles[0])); |
var prototype = [2.5, 2.5]; |