Changeset 187014 in webkit for trunk/Source/JavaScriptCore/parser/Parser.cpp
- Timestamp:
- Jul 19, 2015, 12:31:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Parser.cpp
r187012 r187014 1715 1715 context.setEndOffset(functionInfo.body, m_lexer->currentOffset()); 1716 1716 if (functionScope->strictMode() && functionInfo.name) { 1717 RELEASE_ASSERT(mode == NormalFunctionMode || mode == MethodMode );1717 RELEASE_ASSERT(mode == NormalFunctionMode || mode == MethodMode || mode == ArrowFunctionMode); 1718 1718 semanticFailIfTrue(m_vm->propertyNames->arguments == *functionInfo.name, "'", functionInfo.name->impl(), "' is not a valid function name in strict mode"); 1719 1719 semanticFailIfTrue(m_vm->propertyNames->eval == *functionInfo.name, "'", functionInfo.name->impl(), "' is not a valid function name in strict mode");
Note:
See TracChangeset
for help on using the changeset viewer.