| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 84429778b58a98e4fc7a215dc94a4484c7f99093..90489c11d8866f07f9bd2198244a086e2b8dbf29 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -5756,23 +5756,18 @@ bool JSObject::HasElementWithInterceptor(JSObject* receiver, uint32_t index) {
|
| CustomArguments args(interceptor->data(), receiver, this);
|
| v8::AccessorInfo info(args.end());
|
| if (!interceptor->query()->IsUndefined()) {
|
| - v8::IndexedPropertyQueryImpl query =
|
| - v8::ToCData<v8::IndexedPropertyQueryImpl>(interceptor->query());
|
| + v8::IndexedPropertyQuery query =
|
| + v8::ToCData<v8::IndexedPropertyQuery>(interceptor->query());
|
| LOG(ApiIndexedPropertyAccess("interceptor-indexed-has", this, index));
|
| - v8::Handle<v8::Value> result;
|
| + v8::Handle<v8::Integer> result;
|
| {
|
| // Leaving JavaScript.
|
| VMState state(EXTERNAL);
|
| result = query(index, info);
|
| }
|
| if (!result.IsEmpty()) {
|
| - // IsBoolean check would be removed when transition to new API is over.
|
| - if (result->IsBoolean()) {
|
| - return result->IsTrue() ? true : false;
|
| - } else {
|
| - ASSERT(result->IsInt32());
|
| - return true; // absence of property is signaled by empty handle.
|
| - }
|
| + ASSERT(result->IsInt32());
|
| + return true; // absence of property is signaled by empty handle.
|
| }
|
| } else if (!interceptor->getter()->IsUndefined()) {
|
| v8::IndexedPropertyGetter getter =
|
|
|