Ignore:
Timestamp:
Dec 1, 2015, 6:39:58 AM (10 years ago)
Author:
Carlos Garcia Campos
Message:

Unreviewed, rolling out r192876.

It broke a lot of JSC and layout tests for GTK and EFL

Reverted changeset:

"[ES6] "super" and "this" should be lexically bound inside an
arrow function and should live in a JSLexicalEnvironment"
https://bugs.webkit.org/show_bug.cgi?id=149338
http://trac.webkit.org/changeset/192876

File:
1 edited

Legend:

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

    r192876 r192882  
    375375    ExpressionNode* createArrowFunctionExpr(const JSTokenLocation& location, const ParserFunctionInfo<ASTBuilder>& functionInfo)
    376376    {
    377         usesArrowFunction();
     377        usesThis();
    378378        SourceCode source = m_sourceCode->subExpression(functionInfo.startOffset, functionInfo.body->isArrowFunctionBodyExpression() ? functionInfo.endOffset - 1 : functionInfo.endOffset, functionInfo.startLine, functionInfo.bodyStartColumn);
    379379        ArrowFuncExprNode* result = new (m_parserArena) ArrowFuncExprNode(location, *functionInfo.name, functionInfo.body, source);
     
    913913    void incConstants() { m_scope.m_numConstants++; }
    914914    void usesThis() { m_scope.m_features |= ThisFeature; }
    915     void usesArrowFunction() { m_scope.m_features |= ArrowFunctionFeature; }
    916915    void usesArguments() { m_scope.m_features |= ArgumentsFeature; }
    917916    void usesWith() { m_scope.m_features |= WithFeature; }
Note: See TracChangeset for help on using the changeset viewer.