From b3455fb467a3b3c38d3a9fbf160300210464a3ad Mon Sep 17 00:00:00 2001 From: Jason Orendorff Date: Fri, 12 Jul 2013 12:20:58 -0500 Subject: [PATCH] Bug 889599, part 1 - Fix ParseNode.h comment about PNK_FUNCTION nodes. r=Waldo. --- js/src/frontend/ParseNode.h | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/js/src/frontend/ParseNode.h b/js/src/frontend/ParseNode.h index 517d19ec12a..3e33c76cd7e 100644 --- a/js/src/frontend/ParseNode.h +++ b/js/src/frontend/ParseNode.h @@ -213,20 +213,17 @@ enum ParseNodeKind * object containing arg and var properties. We * create the function object at parse (not emit) * time to specialize arg and var bytecodes early. - * pn_body: PNK_ARGSBODY if formal parameters, - * PNK_STATEMENTLIST node for function body - * statements, - * PNK_RETURN for expression closure, or - * PNK_SEQ for expression closure with - * destructured formal parameters - * PNK_LEXICALSCOPE for implicit function - * in generator-expression + * pn_body: PNK_ARGSBODY, ordinarily; + * PNK_LEXICALSCOPE for implicit function in genexpr * pn_cookie: static level and var index for function * pn_dflags: PND_* definition/use flags (see below) * pn_blockid: block id number - * PNK_ARGSBODY list list of formal parameters followed by - * PNK_STATEMENTLIST node for function body - * statements as final element + * PNK_ARGSBODY list list of formal parameters followed by: + * PNK_STATEMENTLIST node for function body + * statements, + * PNK_RETURN for expression closure, or + * PNK_SEQ for expression closure with + * destructured formal parameters * pn_count: 1 + number of formal parameters * pn_tree: PNK_ARGSBODY or PNK_STATEMENTLIST node * PNK_SPREAD unary pn_kid: expression being spread