mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 811562 - Decorate %_CallFunction arguments with JSOP_NOTEARG. (r=luke)
This commit is contained in:
parent
bc66b87ac2
commit
62eac7a398
@ -5382,11 +5382,15 @@ EmitCallOrNew(JSContext *cx, BytecodeEmitter *bce, ParseNode *pn, ptrdiff_t top)
|
||||
ParseNode *receiver = pn2->pn_next;
|
||||
if (!EmitTree(cx, bce, receiver))
|
||||
return false;
|
||||
if (Emit1(cx, bce, JSOP_NOTEARG) < 0)
|
||||
return false;
|
||||
bool oldEmittingForInit = bce->emittingForInit;
|
||||
bce->emittingForInit = false;
|
||||
for (ParseNode *argpn = receiver->pn_next; argpn != funNode; argpn = argpn->pn_next) {
|
||||
if (!EmitTree(cx, bce, argpn))
|
||||
return false;
|
||||
if (Emit1(cx, bce, JSOP_NOTEARG) < 0)
|
||||
return false;
|
||||
}
|
||||
bce->emittingForInit = oldEmittingForInit;
|
||||
argc -= 2;
|
||||
|
Loading…
Reference in New Issue
Block a user