Reviewers: Sven Panne,
Message:
Committed patchset #1 manually as r15110 (presubmit successful).
Description:
build fix for 15107
[email protected]
BUG=
Committed: https://code.google.com/p/v8/source/detail?r=15110
Please review this at https://codereview.chromium.org/16944003/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M test/cctest/test-api.cc
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;
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.