mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 710932 - Create debugger statements using a constructor that doesn't examine the token stream. r=jorendorff
--HG-- extra : rebase_source : eb913a09cc70398e252c1c8914104c60f79073ab
This commit is contained in:
parent
e5d91c8d73
commit
6e6818ff03
@ -1059,6 +1059,13 @@ ParseNode::asContinueStatement()
|
||||
return *static_cast<ContinueStatement *>(this);
|
||||
}
|
||||
|
||||
class DebuggerStatement : public ParseNode {
|
||||
public:
|
||||
DebuggerStatement(const TokenPos &pos)
|
||||
: ParseNode(PNK_DEBUGGER, JSOP_NOP, PN_NULLARY, pos)
|
||||
{ }
|
||||
};
|
||||
|
||||
ParseNode *
|
||||
CloneLeftHandSide(ParseNode *opn, TreeContext *tc);
|
||||
|
||||
|
@ -4226,7 +4226,7 @@ Parser::statement()
|
||||
return pn;
|
||||
|
||||
case TOK_DEBUGGER:
|
||||
pn = NullaryNode::create(PNK_DEBUGGER, tc);
|
||||
pn = tc->parser->new_<DebuggerStatement>(tokenStream.currentToken().pos);
|
||||
if (!pn)
|
||||
return NULL;
|
||||
tc->flags |= TCF_FUN_HEAVYWEIGHT;
|
||||
|
Loading…
Reference in New Issue
Block a user