mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-03 21:17:31 +09:00
1339395 - Part 2: Add parser support for rest and spread object properties.
This commit is contained in:
parent
90f475f75e
commit
85350c0655
5 changed files with 73 additions and 6 deletions
|
|
@ -5815,6 +5815,11 @@ BytecodeEmitter::emitDestructuringOpsObject(ParseNode* pattern, DestructuringFla
|
|||
return false;
|
||||
|
||||
for (ParseNode* member = pattern->pn_head; member; member = member->pn_next) {
|
||||
if (member->isKind(PNK_SPREAD)) {
|
||||
// FIXME: Implement
|
||||
continue;
|
||||
}
|
||||
|
||||
ParseNode* subpattern;
|
||||
if (member->isKind(PNK_MUTATEPROTO))
|
||||
subpattern = member->pn_kid;
|
||||
|
|
@ -9449,6 +9454,13 @@ BytecodeEmitter::emitPropertyList(ParseNode* pn, MutableHandlePlainObject objp,
|
|||
continue;
|
||||
}
|
||||
|
||||
if (propdef->isKind(PNK_SPREAD)) {
|
||||
MOZ_ASSERT(type == ObjectLiteral);
|
||||
objp.set(nullptr);
|
||||
// FIXME: implement
|
||||
continue;
|
||||
}
|
||||
|
||||
bool extraPop = false;
|
||||
if (type == ClassBody && propdef->as<ClassMethod>().isStatic()) {
|
||||
extraPop = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue