Changeset 167313 in webkit for trunk/Source/JavaScriptCore/parser/Lexer.cpp
- Timestamp:
- Apr 15, 2014, 10:46:42 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Lexer.cpp
r167199 r167313 490 490 491 491 template <typename T> 492 Lexer<T>::Lexer(VM* vm, JSParserStrictness strictness , JSFunctionKind functionKind)492 Lexer<T>::Lexer(VM* vm, JSParserStrictness strictness) 493 493 : m_isReparsing(false) 494 494 , m_vm(vm) 495 495 , m_parsingBuiltinFunction(strictness == JSParseBuiltin) 496 , m_functionKind(functionKind)497 496 { 498 497 } … … 821 820 else if (*ident == m_vm->propertyNames->undefinedKeyword) 822 821 tokenData->ident = &m_vm->propertyNames->undefinedPrivateName; 823 824 822 if (!ident) 825 823 return INVALID_PRIVATE_NAME_ERRORTOK; 826 827 if (*ident == m_vm->propertyNames->IsConstructorPrivateName)828 return m_functionKind == JSFunctionIsConstructorKind ? TRUETOKEN : FALSETOKEN;829 830 824 } 831 825 tokenData->ident = ident; … … 903 897 else if (*ident == m_vm->propertyNames->undefinedKeyword) 904 898 tokenData->ident = &m_vm->propertyNames->undefinedPrivateName; 905 if (m_functionKind == JSFunctionIsConstructorKind) {906 if (*ident == m_vm->propertyNames->IsConstructorPrivateName)907 return TRUETOKEN;908 return FALSETOKEN;909 }910 899 if (!ident) 911 900 return INVALID_PRIVATE_NAME_ERRORTOK;
Note:
See TracChangeset
for help on using the changeset viewer.