Changeset 273229 in webkit


Ignore:
Timestamp:
Feb 21, 2021 9:20:42 PM (3 years ago)
Author:
Lauro Moura
Message:

Fix warning after r273225
https://bugs.webkit.org/show_bug.cgi?id=222257

Reviewed by Keith Miller.

The UNLIKELY condition raises a warn with "suggest parentheses around

‘&&’ within ‘
’" for the last pair.
  • parser/Parser.cpp:

(JSC::Parser<LexerType>::parseUnaryExpression):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r273226 r273229  
     12021-02-21  Lauro Moura  <lmoura@igalia.com>
     2
     3        Fix warning after r273225
     4        https://bugs.webkit.org/show_bug.cgi?id=222257
     5
     6        Reviewed by Keith Miller.
     7
     8        The UNLIKELY condition raises a warn with "suggest parentheses around
     9        ‘&&’ within ‘||’" for the last pair.
     10
     11        * parser/Parser.cpp:
     12        (JSC::Parser<LexerType>::parseUnaryExpression):
     13
    1142021-02-21  Keith Miller  <keith_miller@apple.com>
    215
  • trunk/Source/JavaScriptCore/parser/Parser.cpp

    r273225 r273229  
    53455345    unsigned lastOperator = 0;
    53465346
    5347     if (UNLIKELY(match(AWAIT) && (currentFunctionScope()->isAsyncFunctionBoundary() || (isModuleParseMode(sourceParseMode())) && Options::useTopLevelAwait())))
     5347    if (UNLIKELY(match(AWAIT) && (currentFunctionScope()->isAsyncFunctionBoundary() || (isModuleParseMode(sourceParseMode()) && Options::useTopLevelAwait()))))
    53485348        return parseAwaitExpression(context);
    53495349
Note: See TracChangeset for help on using the changeset viewer.