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/Parser.cpp

    r192876 r192882  
    18771877        semanticFailIfTrue(m_vm->propertyNames->eval == *functionInfo.name, "'", functionInfo.name->impl(), "' is not a valid function name in strict mode");
    18781878    }
    1879     if (functionScope->hasDirectSuper() && functionBodyType == StandardFunctionBodyBlock) {
     1879    if (functionScope->hasDirectSuper()) {
    18801880        semanticFailIfTrue(!isClassConstructor, "Cannot call super() outside of a class constructor");
    18811881        semanticFailIfTrue(constructorKind != ConstructorKind::Derived, "Cannot call super() in a base class constructor");
    18821882    }
    1883     if (functionScope->needsSuperBinding() && functionBodyType == StandardFunctionBodyBlock)
     1883    if (functionScope->needsSuperBinding())
    18841884        semanticFailIfTrue(expectedSuperBinding == SuperBinding::NotNeeded, "super can only be used in a method of a derived class");
    18851885
Note: See TracChangeset for help on using the changeset viewer.