mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
b2a621aa92
commit
5c9952fece
1
js/src/jit-test/tests/basic/testBug701227.js
Normal file
1
js/src/jit-test/tests/basic/testBug701227.js
Normal file
@ -0,0 +1 @@
|
||||
(function f() { try {} catch(e) { let x } }).toString()
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user