| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index a57e2643545448abe0b3add7dad378592cd76796..9fce7acb6853c604bb933e5b1ae3402c92d8f1bd 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -768,8 +768,6 @@ MaybeObject* Object::GetProperty(Object* receiver,
|
| // that even though we may not actually end up loading the named
|
| // property from the current object, we still check that we have
|
| // access to it.
|
| - // TODO(dcarney): revert.
|
| - CHECK(current->IsJSObject());
|
| JSObject* checked = JSObject::cast(current);
|
| if (!heap->isolate()->MayNamedAccess(checked, name, v8::ACCESS_GET)) {
|
| return checked->GetPropertyWithFailedAccessCheck(receiver,
|
|
|