Ignore:
Timestamp:
Nov 18, 2015, 4:03:26 PM (10 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r192436 and r192586.
https://bugs.webkit.org/show_bug.cgi?id=151417

Caused a hang in the inspector and a crash @ google.com.
(Requested by saamyjoon on #webkit).

Reverted changesets:

"Allow any LeftHandSideExpression as a valid
AssignmentElement"
https://bugs.webkit.org/show_bug.cgi?id=151026
http://trac.webkit.org/changeset/192436

"There is a bug when default parameter values are mixed with
destructuring parameter values"
https://bugs.webkit.org/show_bug.cgi?id=151369
http://trac.webkit.org/changeset/192586

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/SyntaxChecker.h

    r192436 r192597  
    347347        return BindingDestructuring;
    348348    }
    349     DestructuringPattern createAssignmentElement(const Expression&, const JSTextPosition&, const JSTextPosition&)
    350     {
    351         return BindingDestructuring;
    352     }
    353349
    354350    bool isBindingNode(DestructuringPattern pattern)
    355351    {
    356352        return pattern == BindingDestructuring;
    357     }
    358 
    359     bool isAssignmentLocation(ExpressionType type)
    360     {
    361         return type == ResolveExpr || type == DotExpr || type == BracketExpr;
    362     }
    363 
    364     bool isObjectLiteral(ExpressionType type)
    365     {
    366         return type == ObjectLiteralExpr;
    367     }
    368 
    369     bool isArrayLiteral(ExpressionType type)
    370     {
    371         return type == ArrayLiteralExpr;
    372     }
    373 
    374     bool isObjectOrArrayLiteral(ExpressionType type)
    375     {
    376         return isObjectLiteral(type) || isArrayLiteral(type);
    377353    }
    378354
Note: See TracChangeset for help on using the changeset viewer.