build fix for 15107

TBR=svenpanne@chromium.org
BUG=

Review URL: https://codereview.chromium.org/16944003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15110 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
dcarney@chromium.org 2013-06-13 10:13:09 +00:00
parent 274221b06c
commit 67c9cd8274

View File

@ -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;
}