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