Changeset 190066 in webkit


Ignore:
Timestamp:
Sep 21, 2015 12:11:42 PM (9 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: arrow function names are never inferred, call frames are labeled (anonymous function)
https://bugs.webkit.org/show_bug.cgi?id=148318

Patch by Aleksandr Skachkov <gskachkov@gmail.com> on 2015-09-21
Reviewed by Saam Barati.

Tiny change to support of the inferred name in arrow function

  • parser/ASTBuilder.h:

(JSC::ASTBuilder::createAssignResolve):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r190063 r190066  
     12015-09-21 Aleksandr Skachkov   <gskachkov@gmail.com>
     2
     3        Web Inspector: arrow function names are never inferred, call frames are labeled (anonymous function)
     4        https://bugs.webkit.org/show_bug.cgi?id=148318
     5
     6        Reviewed by Saam Barati.
     7
     8        Tiny change to support of the inferred name in arrow function
     9 
     10        * parser/ASTBuilder.h:
     11        (JSC::ASTBuilder::createAssignResolve):
     12
    1132015-09-19 Aleksandr Skachkov   <gskachkov@gmail.com>
    214
  • trunk/Source/JavaScriptCore/parser/ASTBuilder.h

    r189819 r190066  
    335335    ExpressionNode* createAssignResolve(const JSTokenLocation& location, const Identifier& ident, ExpressionNode* rhs, const JSTextPosition& start, const JSTextPosition& divot, const JSTextPosition& end, AssignmentContext assignmentContext)
    336336    {
    337         if (rhs->isFuncExprNode())
     337        if (rhs->isFuncExprNode() || rhs->isArrowFuncExprNode())
    338338            static_cast<FuncExprNode*>(rhs)->metadata()->setInferredName(ident);
    339339        AssignResolveNode* node = new (m_parserArena) AssignResolveNode(location, ident, rhs, assignmentContext);
Note: See TracChangeset for help on using the changeset viewer.