Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 39dcc2647d30dfb653c3dbe136a321441e028889..6405115b9ff70daae2030c83d3caf8f6978e7782 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -638,7 +638,11 @@ static inline AccessCheckInfo* GetAccessCheckInfo(Isolate* isolate, |
void Isolate::ReportFailedAccessCheck(Handle<JSObject> receiver, |
v8::AccessType type) { |
- if (!thread_local_top()->failed_access_check_callback_) return; |
+ if (!thread_local_top()->failed_access_check_callback_) { |
+ Handle<String> message = factory()->InternalizeUtf8String("no access"); |
+ ScheduleThrow(*factory()->NewTypeError(message)); |
+ return; |
+ } |
ASSERT(receiver->IsAccessCheckNeeded()); |
ASSERT(context()); |