Bug 1111253 - Distinguish failures that set a pending exception, from failures that do not, when determining the AbortReason to return from IonCompile. r=jandem

--HG--
extra : rebase_source : cf2b3e3bc32771cd37e41cd38a6ea77c256e3a67
This commit is contained in:
Jeff Walden 2014-12-15 16:01:24 -08:00
parent 5cf5096c26
commit c1e10ae4e6

View File

@ -2015,7 +2015,11 @@ IonCompile(JSContext *cx, JSScript *script,
bool success = codegen->link(cx, builder->constraints());
return success ? AbortReason_NoAbort : AbortReason_Disable;
if (success)
return AbortReason_NoAbort;
if (cx->isExceptionPending())
return AbortReason_Error;
return AbortReason_Disable;
}
static bool