summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/ParseNode.h
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-20 10:27:23 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-20 10:27:23 +0100
commit3ee73ca14cec9ac99ebee938d76650ad11aa98da (patch)
tree3185284d74f6f043187611a45ad9352b653ec948 /js/src/frontend/ParseNode.h
parent893a886ea38853a1a3e97bcf135ea3cb616cd69a (diff)
downloadUXP-3ee73ca14cec9ac99ebee938d76650ad11aa98da.tar
UXP-3ee73ca14cec9ac99ebee938d76650ad11aa98da.tar.gz
UXP-3ee73ca14cec9ac99ebee938d76650ad11aa98da.tar.lz
UXP-3ee73ca14cec9ac99ebee938d76650ad11aa98da.tar.xz
UXP-3ee73ca14cec9ac99ebee938d76650ad11aa98da.zip
Bug 1322314 - Disallow emitting ParseNode twice
Issue #73 [Depends on] Bug 1147371: Implement IteratorClose
Diffstat (limited to 'js/src/frontend/ParseNode.h')
-rw-r--r--js/src/frontend/ParseNode.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/src/frontend/ParseNode.h b/js/src/frontend/ParseNode.h
index ff26279af..c58dab431 100644
--- a/js/src/frontend/ParseNode.h
+++ b/js/src/frontend/ParseNode.h
@@ -649,14 +649,12 @@ class ParseNode
MOZ_ASSERT(pn_arity == PN_CODE && getKind() == PNK_FUNCTION);
MOZ_ASSERT(isOp(JSOP_LAMBDA) || // lambda, genexpr
isOp(JSOP_LAMBDA_ARROW) || // arrow function
- isOp(JSOP_FUNWITHPROTO) || // already emitted lambda with needsProto
isOp(JSOP_DEFFUN) || // non-body-level function statement
isOp(JSOP_NOP) || // body-level function stmt in global code
isOp(JSOP_GETLOCAL) || // body-level function stmt in function code
isOp(JSOP_GETARG) || // body-level function redeclaring formal
isOp(JSOP_INITLEXICAL)); // block-level function stmt
- return !isOp(JSOP_LAMBDA) && !isOp(JSOP_LAMBDA_ARROW) &&
- !isOp(JSOP_FUNWITHPROTO) && !isOp(JSOP_DEFFUN);
+ return !isOp(JSOP_LAMBDA) && !isOp(JSOP_LAMBDA_ARROW) && !isOp(JSOP_DEFFUN);
}
/*