summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/asm/float64array-store-div.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/asm/float64array-store-div.js')
-rw-r--r--deps/v8/test/mjsunit/asm/float64array-store-div.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/asm/float64array-store-div.js b/deps/v8/test/mjsunit/asm/float64array-store-div.js
index 10b0011fbc..0af2ffc28a 100644
--- a/deps/v8/test/mjsunit/asm/float64array-store-div.js
+++ b/deps/v8/test/mjsunit/asm/float64array-store-div.js
@@ -6,8 +6,9 @@ function Module(stdlib, foreign, heap) {
"use asm";
var MEM64 = new stdlib.Float64Array(heap);
function foo(i) {
- MEM64[0] = (i >>> 0) / 2;
- return MEM64[0];
+ i = i | 0;
+ MEM64[0] = +(i >>> 0) / 2.;
+ return +MEM64[0];
}
return { foo: foo };
}