mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 583806 - Fix calling unbound mkIdentifier in narcissus jsparse.js. r=dherman
This commit is contained in:
parent
8ed74ae25b
commit
9dbc7ce7d4
@ -1543,9 +1543,10 @@ function Variables(t, x, letBlock) {
|
||||
if (t.token.assignOp)
|
||||
throw t.newSyntaxError("Invalid variable initialization");
|
||||
|
||||
// Parse the init as a normal assignment.
|
||||
var id = mkIdentifier(n2.tokenizer, n2.name, true);
|
||||
// Parse the init as a normal assignment with a fake lhs.
|
||||
var id = new Node(n2.tokenizer, IDENTIFIER);
|
||||
var n3 = b.ASSIGN$build(t);
|
||||
id.name = id.value = n2.name;
|
||||
b.ASSIGN$addOperand(n3, id);
|
||||
b.ASSIGN$addOperand(n3, AssignExpression(t, x));
|
||||
b.ASSIGN$finish(n3);
|
||||
|
Loading…
Reference in New Issue
Block a user