| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index 5f7b3f2d3b6134b0c8518d76eca776ad1d8b98fd..4192d113c78c1a61bb21d94e5550b07209553725 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -944,11 +944,7 @@ bool Isolate::MayNamedAccess(JSObject* receiver, Object* key,
|
| if (decision != UNKNOWN) return decision == YES;
|
|
|
| // Get named access check callback
|
| - // TODO(dcarney): revert
|
| - Map* map = receiver->map();
|
| - CHECK(map->IsMap());
|
| - CHECK(map->constructor()->IsJSFunction());
|
| - JSFunction* constructor = JSFunction::cast(map->constructor());
|
| + JSFunction* constructor = JSFunction::cast(receiver->map()->constructor());
|
| if (!constructor->shared()->IsApiFunction()) return false;
|
|
|
| Object* data_obj =
|
|
|