Changeset 192882 in webkit for trunk/Source/JavaScriptCore/parser/Parser.cpp
- Timestamp:
- Dec 1, 2015, 6:39:58 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Parser.cpp
r192876 r192882 1877 1877 semanticFailIfTrue(m_vm->propertyNames->eval == *functionInfo.name, "'", functionInfo.name->impl(), "' is not a valid function name in strict mode"); 1878 1878 } 1879 if (functionScope->hasDirectSuper() && functionBodyType == StandardFunctionBodyBlock) {1879 if (functionScope->hasDirectSuper()) { 1880 1880 semanticFailIfTrue(!isClassConstructor, "Cannot call super() outside of a class constructor"); 1881 1881 semanticFailIfTrue(constructorKind != ConstructorKind::Derived, "Cannot call super() in a base class constructor"); 1882 1882 } 1883 if (functionScope->needsSuperBinding() && functionBodyType == StandardFunctionBodyBlock)1883 if (functionScope->needsSuperBinding()) 1884 1884 semanticFailIfTrue(expectedSuperBinding == SuperBinding::NotNeeded, "super can only be used in a method of a derived class"); 1885 1885
Note:
See TracChangeset
for help on using the changeset viewer.