Index: src/compiler/js-inlining.cc |
diff --git a/src/compiler/js-inlining.cc b/src/compiler/js-inlining.cc |
index 376448e08aab71443c8ae3d08442f5318e4cfc24..58e5a276ccc24dd64bd313ae9983b8c04aec99bb 100644 |
--- a/src/compiler/js-inlining.cc |
+++ b/src/compiler/js-inlining.cc |
@@ -482,7 +482,9 @@ Reduction JSInliner::ReduceJSCall(Node* node, Handle<JSFunction> function) { |
TRACE("Not inlining %s into %s because bytecode generation failed\n", |
shared_info->DebugName()->ToCString().get(), |
info_->shared_info()->DebugName()->ToCString().get()); |
- DCHECK(!info_->isolate()->has_pending_exception()); |
+ if (info_->isolate()->has_pending_exception()) { |
+ info_->isolate()->clear_pending_exception(); |
+ } |
return NoChange(); |
} |