mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Bug 1204028: Evaluate LHS reference before RHS in destructuring
Issue #73 [Depends on] Bug 1147371: Implement IteratorClose
This commit is contained in:
parent
078b9f3edc
commit
2f27d8433c
11 changed files with 1743 additions and 97 deletions
|
|
@ -1860,7 +1860,6 @@ CASE(EnableInterruptsPseudoOpcode)
|
|||
/* Various 1-byte no-ops. */
|
||||
CASE(JSOP_NOP)
|
||||
CASE(JSOP_NOP_DESTRUCTURING)
|
||||
CASE(JSOP_UNUSED183)
|
||||
CASE(JSOP_UNUSED187)
|
||||
CASE(JSOP_UNUSED192)
|
||||
CASE(JSOP_UNUSED209)
|
||||
|
|
@ -2193,6 +2192,16 @@ CASE(JSOP_PICK)
|
|||
}
|
||||
END_CASE(JSOP_PICK)
|
||||
|
||||
CASE(JSOP_UNPICK)
|
||||
{
|
||||
int i = GET_UINT8(REGS.pc);
|
||||
MOZ_ASSERT(REGS.stackDepth() >= unsigned(i) + 1);
|
||||
Value lval = REGS.sp[-1];
|
||||
memmove(REGS.sp - i, REGS.sp - (i + 1), sizeof(Value) * i);
|
||||
REGS.sp[-(i + 1)] = lval;
|
||||
}
|
||||
END_CASE(JSOP_UNPICK)
|
||||
|
||||
CASE(JSOP_BINDGNAME)
|
||||
CASE(JSOP_BINDNAME)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue