Chromium Code Reviews| Index: src/isolate.cc |
| diff --git a/src/isolate.cc b/src/isolate.cc |
| index 0c0af8472a75f3067d63c17f662b2639d78edd85..e0964fe12a22d0a49119435eea3f9493be1c78f2 100644 |
| --- a/src/isolate.cc |
| +++ b/src/isolate.cc |
| @@ -1693,6 +1693,8 @@ bool Isolate::IsExternalHandlerOnTop(Object* exception) { |
| void Isolate::ReportPendingMessages() { |
| + DCHECK(AllowExceptions::IsAllowed(this)); |
| + |
| Object* exception = pending_exception(); |
| // Try to propagate the exception to an external v8::TryCatch handler. If |