Changeset 282968 in webkit for trunk/Source/JavaScriptCore/parser/Parser.cpp
- Timestamp:
- Sep 23, 2021, 10:24:52 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Parser.cpp
r281429 r282968 4239 4239 bool hasCoalesceOperator = false; 4240 4240 4241 int previousOperator = 0; 4241 4242 while (true) { 4242 4243 JSTextPosition exprStart = tokenStartPosition(); … … 4251 4252 m_seenPrivateNameUseInNonReparsingFunctionMode = true; 4252 4253 next(); 4253 semanticFailIfTrue(m_token.m_type != INTOKEN , "Bare private name can only be used as the left-hand side of an `in` expression");4254 semanticFailIfTrue(m_token.m_type != INTOKEN || previousOperator >= INTOKEN, "Bare private name can only be used as the left-hand side of an `in` expression"); 4254 4255 current = context.createPrivateIdentifierNode(location, *ident); 4255 4256 } else … … 4308 4309 } 4309 4310 context.operatorStackAppend(operatorStackDepth, operatorToken, precedence); 4311 previousOperator = operatorToken; 4310 4312 } 4311 4313 while (operatorStackDepth) {
Note:
See TracChangeset
for help on using the changeset viewer.