mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Bug 1357075 - Pad a nop to unwind to the scope just before a destructuring iterator close trynote
Issue #74
This commit is contained in:
parent
8af5664922
commit
ac07311b18
7 changed files with 43 additions and 5 deletions
|
|
@ -1080,6 +1080,9 @@ js::UnwindEnvironmentToTryPc(JSScript* script, JSTryNote* tn)
|
|||
if (tn->kind == JSTRY_CATCH || tn->kind == JSTRY_FINALLY) {
|
||||
pc -= JSOP_TRY_LENGTH;
|
||||
MOZ_ASSERT(*pc == JSOP_TRY);
|
||||
} else if (tn->kind == JSTRY_DESTRUCTURING_ITERCLOSE) {
|
||||
pc -= JSOP_TRY_DESTRUCTURING_ITERCLOSE_LENGTH;
|
||||
MOZ_ASSERT(*pc == JSOP_TRY_DESTRUCTURING_ITERCLOSE);
|
||||
}
|
||||
return pc;
|
||||
}
|
||||
|
|
@ -1917,7 +1920,7 @@ CASE(JSOP_UNUSED192)
|
|||
CASE(JSOP_UNUSED209)
|
||||
CASE(JSOP_UNUSED210)
|
||||
CASE(JSOP_UNUSED211)
|
||||
CASE(JSOP_UNUSED220)
|
||||
CASE(JSOP_TRY_DESTRUCTURING_ITERCLOSE)
|
||||
CASE(JSOP_UNUSED221)
|
||||
CASE(JSOP_UNUSED222)
|
||||
CASE(JSOP_UNUSED223)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue