Bug 701227 - don't assume catch's block object has only one entry (r=waldo)

--HG--
extra : rebase_source : 77673329e0841330a954a7f419d2561701c43f3c
This commit is contained in:
Luke Wagner 2011-11-10 21:53:55 -08:00
parent b2a621aa92
commit 5c9952fece
2 changed files with 3 additions and 3 deletions

View File

@ -0,0 +1 @@
(function f() { try {} catch(e) { let x } }).toString()

View File

@ -2951,9 +2951,8 @@ Decompile(SprintStack *ss, jsbytecode *pc, intN nb)
#endif
LOCAL_ASSERT(*pc == JSOP_SETLOCALPOP);
pc += JSOP_SETLOCALPOP_LENGTH;
LOCAL_ASSERT(OBJ_BLOCK_COUNT(cx, obj) == 1);
atom = JSID_TO_ATOM(obj->lastProperty()->propid);
if (!QuoteString(&jp->sprinter, atom, 0))
LOCAL_ASSERT(OBJ_BLOCK_COUNT(cx, obj) >= 1);
if (!QuoteString(&jp->sprinter, atoms[0], 0))
return NULL;
#if JS_HAS_DESTRUCTURING
}