Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 24a6944b57e48e3972f2a75f69e3727b527d081f
https://github.com/WebKit/WebKit/commit/24a6944b57e48e3972f2a75f69e3727b527d081f
Author: Vassili Bykov <[email protected]>
Date: 2026-08-20 (Thu, 20 Aug 2026)
Changed paths:
M Source/JavaScriptCore/parser/Parser.cpp
Log Message:
-----------
[JSC] Do not accumulate new token positions in parseMemberExpression for
SyntaxChecker
https://bugs.webkit.org/show_bug.cgi?id=322035
rdar://185228426
Reviewed by Yijia Huang and Yusuke Suzuki.
Parser::newMemberExpression accumulates the positions of NEW tokens in a Vector
held in
newTokenStartPositions. SyntaxChecker ignores these accumulated positions, so
when it is
the TreeBuilder, instead of a real Vector we can use a cheaper placeholder that
only
counts the tokens without accumulating them.
Covered by existing tests.
Canonical link: https://commits.webkit.org/319528@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications