mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Bug 1332155 - Skip non-try-related trynotes when asserting jump targets
Issue #74
This commit is contained in:
parent
082451c781
commit
da23a493b7
1 changed files with 2 additions and 1 deletions
|
|
@ -2804,9 +2804,10 @@ JSScript::assertValidJumpTargets() const
|
|||
for (; tn < tnlimit; tn++) {
|
||||
jsbytecode* tryStart = mainEntry + tn->start;
|
||||
jsbytecode* tryPc = tryStart - 1;
|
||||
if (JSOp(*tryPc) != JSOP_TRY)
|
||||
if (tn->kind != JSTRY_CATCH && tn->kind != JSTRY_FINALLY)
|
||||
continue;
|
||||
|
||||
MOZ_ASSERT(JSOp(*tryPc) == JSOP_TRY);
|
||||
jsbytecode* tryTarget = tryStart + tn->length;
|
||||
MOZ_ASSERT(mainEntry <= tryTarget && tryTarget < end);
|
||||
MOZ_ASSERT(BytecodeIsJumpTarget(JSOp(*tryTarget)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue