Index: src/messages.cc |
diff --git a/src/messages.cc b/src/messages.cc |
index ee364b9bc6496d786c93eaf747b163476fa6a922..d5a15256b9fa0cfd75b5fda18aaa972dc15d47bf 100644 |
--- a/src/messages.cc |
+++ b/src/messages.cc |
@@ -249,7 +249,7 @@ bool CheckMethodName(Isolate* isolate, Handle<JSObject> obj, Handle<Name> name, |
Handle<Object> CallSite::GetMethodName() { |
- if (!IsJavaScript() || receiver_->IsNull() || |
+ if (!IsJavaScript() || receiver_->IsNull(isolate_) || |
receiver_->IsUndefined(isolate_)) { |
return isolate_->factory()->null_value(); |
} |
@@ -341,7 +341,7 @@ bool CallSite::IsNative() { |
bool CallSite::IsToplevel() { |
if (IsWasm()) return false; |
- return receiver_->IsJSGlobalProxy() || receiver_->IsNull() || |
+ return receiver_->IsJSGlobalProxy() || receiver_->IsNull(isolate_) || |
receiver_->IsUndefined(isolate_); |
} |