Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 29868ab9c6c6bdc4c1844627a823273eff3aa06d..dcfa395014309a2ba27538def7d11b5d05749827 100755 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -12765,7 +12765,8 @@ THREADED_TEST(DisposeEnteredContext) { |
{ |
// Don't want a handle here, so do this unsafely |
v8::Handle<v8::Context> inner_local = |
- *reinterpret_cast<v8::Handle<v8::Context>*>(&inner); |
+ v8::Utils::Convert<i::Object, v8::Context>( |
+ v8::Utils::OpenPersistent(inner)); |
inner_local->Enter(); |
inner.Dispose(); |
inner.Clear(); |