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/ASTBuilder.h

    r192436 r192597  
    122122    typedef ObjectPatternNode* ObjectPattern;
    123123    typedef BindingNode* BindingPattern;
    124     typedef AssignmentElementNode* AssignmentElement;
    125124    static const bool CreatesAST = true;
    126125    static const bool NeedsFreeVariableInfo = true;
     
    526525    }
    527526
    528     bool isAssignmentLocation(const Expression& pattern)
    529     {
    530         return pattern->isAssignmentLocation();
    531     }
    532 
    533     bool isObjectLiteral(const Expression& node)
    534     {
    535         return node->isObjectLiteral();
    536     }
    537 
    538     bool isArrayLiteral(const Expression& node)
    539     {
    540         return node->isArrayLiteral();
    541     }
    542 
    543     bool isObjectOrArrayLiteral(const Expression& node)
    544     {
    545         return isObjectLiteral(node) || isArrayLiteral(node);
    546     }
    547 
    548527    StatementNode* createEmptyStatement(const JSTokenLocation& location) { return new (m_parserArena) EmptyStatementNode(location); }
    549528
     
    856835    {
    857836        return new (m_parserArena) BindingNode(boundProperty, start, end, context);
    858     }
    859 
    860     AssignmentElement createAssignmentElement(const Expression& assignmentTarget, const JSTextPosition& start, const JSTextPosition& end)
    861     {
    862         return new (m_parserArena) AssignmentElementNode(assignmentTarget, start, end);
    863837    }
    864838
Note: See TracChangeset for help on using the changeset viewer.