Index: src/handles.cc |
diff --git a/src/handles.cc b/src/handles.cc |
index 830eb096027452956aef5c9d0cc49c151affb756..47bab25d4ee3af091ff916349ca763a0ce63cba0 100644 |
--- a/src/handles.cc |
+++ b/src/handles.cc |
@@ -537,10 +537,10 @@ Handle<FixedArray> GetKeysInFixedArrayFor(Handle<JSReceiver> object, |
// Check access rights if required. |
if (current->IsAccessCheckNeeded() && |
- !isolate->MayNamedAccess(*current, |
- isolate->heap()->undefined_value(), |
- v8::ACCESS_KEYS)) { |
- isolate->ReportFailedAccessCheck(*current, v8::ACCESS_KEYS); |
+ !isolate->MayNamedAccessWrapper(current, |
+ isolate->factory()->undefined_value(), |
+ v8::ACCESS_KEYS)) { |
+ isolate->ReportFailedAccessCheckWrapper(current, v8::ACCESS_KEYS); |
if (isolate->has_scheduled_exception()) { |
isolate->PromoteScheduledException(); |
*threw = true; |