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