Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index c97cb584f340e195e661611d320143624c405d44..b672185792c417a75f311c7ea6b35d880f91f6a4 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -1646,7 +1646,7 @@ MUST_USE_RESULT static MaybeHandle<Object> HandleApiCallHelper( |
Handle<Object> receiver(&args[0]); |
if (receiver->IsJSObject() && receiver->IsAccessCheckNeeded()) { |
Handle<JSObject> js_receiver = Handle<JSObject>::cast(receiver); |
- if (!isolate->MayAccess(js_receiver)) { |
+ if (!isolate->MayAccess(handle(isolate->context()), js_receiver)) { |
isolate->ReportFailedAccessCheck(js_receiver); |
RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION(isolate, Object); |
} |