Changeset 193606 in webkit for trunk/Source/JavaScriptCore/parser/Parser.cpp
- Timestamp:
- Dec 6, 2015, 5:54:43 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Parser.cpp
r193584 r193606 1979 1979 semanticFailIfTrue(m_vm->propertyNames->eval == *functionInfo.name, "'", functionInfo.name->impl(), "' is not a valid function name in strict mode"); 1980 1980 } 1981 if (functionScope->hasDirectSuper() && functionBodyType == StandardFunctionBodyBlock) {1981 if (functionScope->hasDirectSuper()) { 1982 1982 semanticFailIfTrue(!isClassConstructor, "Cannot call super() outside of a class constructor"); 1983 1983 semanticFailIfTrue(constructorKind != ConstructorKind::Derived, "Cannot call super() in a base class constructor"); 1984 1984 } 1985 if (functionScope->needsSuperBinding() && functionBodyType == StandardFunctionBodyBlock)1985 if (functionScope->needsSuperBinding()) 1986 1986 semanticFailIfTrue(expectedSuperBinding == SuperBinding::NotNeeded, "super can only be used in a method of a derived class"); 1987 1987
Note:
See TracChangeset
for help on using the changeset viewer.