Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 69072a22e4fcde79672050c0b99c9b05f9749866..62e3810855191512f16ce99fc5b57b55fb6787ce 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -1807,11 +1807,9 @@ class InspectorFrontend final : public v8_inspector::V8Inspector::Channel { |
if (callback->IsFunction()) { |
v8::TryCatch try_catch(isolate_); |
Local<Value> args[] = {message}; |
- if (Local<Function>::Cast(callback) |
- ->Call(context, Undefined(isolate_), 1, args) |
- .IsEmpty()) { |
- try_catch.ReThrow(); |
- } |
+ MaybeLocal<Value> result = Local<Function>::Cast(callback)->Call( |
+ context, Undefined(isolate_), 1, args); |
+ CHECK(!result.IsEmpty()); // Listeners may not throw. |
} |
} |