Skip to content

Commit 6a2c0ec

Browse files
Honor buildAST
1 parent d2377a4 commit 6a2c0ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Parser/Parse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4300,7 +4300,7 @@ ParseNodePtr Parser::ParsePostfixOperators(
43004300
break;
43014301
}
43024302
default:
4303-
if (isOptionalChain)
4303+
if (buildAST && isOptionalChain)
43044304
{
43054305
// Wrap as optional chain
43064306
return CreateUniNode(knopOptChain, pnode);

0 commit comments

Comments
 (0)