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

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

Issue 16944003: build fix for 15107 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index 027071f5bd0e50cca861c280d3b678a24554f36f..ca42909808bb0c5183c9fa4a47c24e5f8afc3f88 100755
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -5145,7 +5145,11 @@ Handle<v8::Array> NonStrictArgsIndexedPropertyEnumerator(
"keys;"));
Local<Object> result =
Local<Object>::Cast(indexed_property_names_script->Run());
- return *reinterpret_cast<Local<v8::Array>*>(&result);
+ // Have to populate the handle manually, as it's not Cast-able.
+ Local<v8::Array> array_result;
+ Object** ptr = reinterpret_cast<Object**>(&array_result);
+ *ptr = *reinterpret_cast<Object**>(&result);
+ return array_result;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698