Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1033)

Unified Diff: test/cctest/test-api.cc

Issue 9402008: Uniformly handle 'undefined' store to Float64Array and Float32Array. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index 87d54537560fdb061a59f68d3c386d98700d6f2c..ed5fbf1d3dd459f68ffe2fe5ffec86d00dae8201 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -12903,7 +12903,8 @@ 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()));
+ (int)0x80000000,
+ static_cast<int>(jsobj->GetElement(7)->ToObjectChecked()->Number()));
result = CompileRun("for (var i = 0; i < 8; i++) {"
" ext_array[6] = '2.3';"

Powered by Google App Engine
This is Rietveld 408576698