Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index d4dc0fc5cb9e66bf8b25506f89e54d2f70f44405..d0754609f708ef49769ca799db168d1201e22874 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -1571,7 +1571,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetPrototype) { |
ASSERT(!obj->IsAccessCheckNeeded() || obj->IsJSObject()); |
do { |
if (obj->IsAccessCheckNeeded() && |
- !isolate->MayNamedAccessWrapper(obj, |
+ !isolate->MayNamedAccessWrapper(Handle<JSObject>::cast(obj), |
isolate->factory()->proto_string(), |
v8::ACCESS_GET)) { |
isolate->ReportFailedAccessCheck(JSObject::cast(*obj), v8::ACCESS_GET); |