Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] Tweak parseMemberExpression() to get rid of
baseIsNewTarget
https://bugs.webkit.org/show_bug.cgi?id=268575 <rdar://problem/122131541> Reviewed by Justin Michaud and Yusuke Suzuki. Only one of `match(DOT)`, `baseIsSuper`, and `baseIsImport` can be true since they all call match() in the same location. Given that, we can leverage `else if` to get rid of `baseIsNewTarget`. This change is non-observable code tweak. * Source/JavaScriptCore/parser/Parser.cpp: (JSC::Parser<LexerType>::parseMemberExpression): Canonical link: https://commits.webkit.org/273967@main
- Loading branch information
Alexey Shvayka
committed
Feb 2, 2024
1 parent
e15eaf5
commit ebaf43b
Showing
1 changed file
with
3 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters