| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 26daec77a353e6943b97d7c069405bd72298eb5b..328b2780fc352853c97986686ab024524b4d29ea 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -867,6 +867,9 @@ MaybeHandle<Code> Compiler::GetLazyCode(Handle<JSFunction> function) {
|
| DCHECK(function->shared()->is_compiled());
|
| return info.code();
|
| }
|
| + // We have failed compilation. If there was an exception clear it so that
|
| + // we can compile unoptimized code.
|
| + if (isolate->has_pending_exception()) isolate->clear_pending_exception();
|
| }
|
|
|
| if (function->shared()->is_compiled()) {
|
|
|