Bug 780549 part 2 - Check returned value of AutoEnterCompilation::init in Ion compilation. r=bhackett a=abillings

This commit is contained in:
Nicolas B. Pierron 2012-12-28 01:05:18 -08:00
parent 03688bc401
commit 4b3ce2262c

View File

@ -1178,7 +1178,8 @@ IonCompile(JSContext *cx, HandleScript script, HandleFunction fun, jsbytecode *o
AutoFlushCache afc("IonCompile");
types::AutoEnterCompilation enterCompiler(cx, CompilerOutputKind(executionMode));
enterCompiler.init(script, false, 0);
if (!enterCompiler.init(script, false, 0))
return false;
AutoTempAllocatorRooter root(cx, temp);