Commit edd381f7 authored by Milad Farazmand's avatar Milad Farazmand Committed by Commit Bot

[foozzie] Fix endianness problem with expected output

Change-Id: I70fa23a2491186d2bf94b26a292163efa1c23d61
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2255503Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Commit-Queue: Milad Farazmand <miladfar@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#68446}
parent e5339736
......@@ -80,7 +80,11 @@ else {
// Test that DataView has the same NaN patterns with optimized and
// unoptimized code.
testSameOptimized([4213246272,405619796,61503,0,3675212096,32831], () => {
var expected_array = [4213246272,405619796,61503,0,3675212096,32831];
if (isBigEndian){
expected_array = [1074340347,1413754136,1072693248,0,1078530011,1065353216];
}
testSameOptimized(expected_array, () => {
const array = new Uint32Array(6);
const view = new DataView(array.buffer);
view.setFloat64(0, Math.PI);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment