Index: src/builtins/builtins-api.cc |
diff --git a/src/builtins/builtins-api.cc b/src/builtins/builtins-api.cc |
index 3952f67d815629e0fedf57159e45103914c063ba..eb34638fa0b94ee00cd735007d3b39b8b29cd3bd 100644 |
--- a/src/builtins/builtins-api.cc |
+++ b/src/builtins/builtins-api.cc |
@@ -81,6 +81,7 @@ MUST_USE_RESULT MaybeHandle<Object> HandleApiCallHelper( |
!isolate->MayAccess(handle(isolate->context()), js_receiver)) { |
isolate->ReportFailedAccessCheck(js_receiver); |
RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION(isolate, Object); |
+ return isolate->factory()->undefined_value(); |
} |
raw_holder = GetCompatibleReceiver(isolate, *fun_data, *js_receiver); |