Index: src/handles.cc |
diff --git a/src/handles.cc b/src/handles.cc |
index 123fdc5adf4de5d691ba3bcdcf1ab28c3fc7810b..81828d98ccde2ffa074cd6e5854407238037262e 100644 |
--- a/src/handles.cc |
+++ b/src/handles.cc |
@@ -566,7 +566,8 @@ v8::Handle<v8::Array> GetKeysForNamedInterceptor(Handle<JSReceiver> receiver, |
#if ENABLE_EXTRA_CHECKS |
CHECK(result.IsEmpty() || v8::Utils::OpenHandle(*result)->IsJSObject()); |
#endif |
- return result; |
+ return v8::Local<v8::Array>::New(reinterpret_cast<v8::Isolate*>(isolate), |
+ result); |
} |
@@ -591,7 +592,8 @@ v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSReceiver> receiver, |
#endif |
} |
} |
- return result; |
+ return v8::Local<v8::Array>::New(reinterpret_cast<v8::Isolate*>(isolate), |
+ result); |
} |