Ignore:
Timestamp:
Dec 6, 2015, 5:54:43 PM (10 years ago)
Author:
[email protected]
Message:

REGRESSION(r193584): Causes heap use-after-free crashes in Web Inspector tests with AddressSanitizer (Requested by ddkilzer on #webkit).
https://bugs.webkit.org/show_bug.cgi?id=151929

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/193584

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/Parser.cpp

    r193584 r193606  
    19791979        semanticFailIfTrue(m_vm->propertyNames->eval == *functionInfo.name, "'", functionInfo.name->impl(), "' is not a valid function name in strict mode");
    19801980    }
    1981     if (functionScope->hasDirectSuper() && functionBodyType == StandardFunctionBodyBlock) {
     1981    if (functionScope->hasDirectSuper()) {
    19821982        semanticFailIfTrue(!isClassConstructor, "Cannot call super() outside of a class constructor");
    19831983        semanticFailIfTrue(constructorKind != ConstructorKind::Derived, "Cannot call super() in a base class constructor");
    19841984    }
    1985     if (functionScope->needsSuperBinding() && functionBodyType == StandardFunctionBodyBlock)
     1985    if (functionScope->needsSuperBinding())
    19861986        semanticFailIfTrue(expectedSuperBinding == SuperBinding::NotNeeded, "super can only be used in a method of a derived class");
    19871987
Note: See TracChangeset for help on using the changeset viewer.