| Index: src/handles.cc
|
| diff --git a/src/handles.cc b/src/handles.cc
|
| index 19db5eb021e109f06187bfc2d9c1d8c56d1fa978..6aa7a6a87639a893bc8c3e5f263f231ae069228d 100644
|
| --- a/src/handles.cc
|
| +++ b/src/handles.cc
|
| @@ -561,6 +561,9 @@ v8::Handle<v8::Array> GetKeysForNamedInterceptor(Handle<JSReceiver> receiver,
|
| result = enum_fun(info);
|
| }
|
| }
|
| +#if ENABLE_EXTRA_CHECKS
|
| + CHECK(result.IsEmpty() || v8::Utils::OpenHandle(*result)->IsJSObject());
|
| +#endif
|
| return result;
|
| }
|
|
|
| @@ -581,6 +584,9 @@ v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSReceiver> receiver,
|
| // Leaving JavaScript.
|
| VMState state(isolate, EXTERNAL);
|
| result = enum_fun(info);
|
| +#if ENABLE_EXTRA_CHECKS
|
| + CHECK(result.IsEmpty() || v8::Utils::OpenHandle(*result)->IsJSObject());
|
| +#endif
|
| }
|
| }
|
| return result;
|
|
|