Index: src/debug/debug.cc |
diff --git a/src/debug/debug.cc b/src/debug/debug.cc |
index 1bd69cbc882ddf5faf10280abc9d1bd0a59b3602..8b411b688696d37132b7d4caf4774d6461c987b6 100644 |
--- a/src/debug/debug.cc |
+++ b/src/debug/debug.cc |
@@ -2045,7 +2045,7 @@ void Debug::SetEventListener(Handle<Object> callback, |
event_listener_data_ = Handle<Object>(); |
// Set new entry. |
- if (!callback->IsUndefined(isolate_) && !callback->IsNull(isolate_)) { |
+ if (!callback->IsNullOrUndefined(isolate_)) { |
event_listener_ = global_handles->Create(*callback); |
if (data.is_null()) data = isolate_->factory()->undefined_value(); |
event_listener_data_ = global_handles->Create(*data); |