| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 87d54537560fdb061a59f68d3c386d98700d6f2c..3c7866d3bd178cae835484525892de97cec9b968 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -12902,8 +12902,15 @@ static void ExternalArrayTestHelper(v8::ExternalArrayType array_type,
|
| "}"
|
| "ext_array[7];");
|
| CHECK_EQ(0, result->Int32Value());
|
| - CHECK_EQ(
|
| - 0, static_cast<int>(jsobj->GetElement(7)->ToObjectChecked()->Number()));
|
| + if (array_type == kExternalDoubleArray ||
|
| + array_type == kExternalFloatArray) {
|
| + CHECK_EQ(
|
| + static_cast<int>(0x80000000),
|
| + static_cast<int>(jsobj->GetElement(7)->ToObjectChecked()->Number()));
|
| + } else {
|
| + CHECK_EQ(0, static_cast<int>(
|
| + jsobj->GetElement(7)->ToObjectChecked()->Number()));
|
| + }
|
|
|
| result = CompileRun("for (var i = 0; i < 8; i++) {"
|
| " ext_array[6] = '2.3';"
|
|
|