diff --git a/js/src/jsinterp.cpp b/js/src/jsinterp.cpp index c532dd3d329..e3f0967cefe 100644 --- a/js/src/jsinterp.cpp +++ b/js/src/jsinterp.cpp @@ -6805,7 +6805,6 @@ END_CASE(JSOP_ARRAYPUSH) // Handle exceptions as if they came from the imacro-calling pc. regs.pc = regs.fp->imacropc(); regs.fp->clearImacropc(); - atoms = script->atomMap.vector; } #endif @@ -6834,6 +6833,9 @@ END_CASE(JSOP_ARRAYPUSH) JSTryNote *tn, *tnlimit; uint32 offset; + /* Restore atoms local in case we will resume. */ + atoms = script->atomMap.vector; + /* Call debugger throw hook if set. */ handler = cx->debugHooks->throwHook; if (handler) {