Changeset 188219 in webkit for trunk/Source/JavaScriptCore/parser/Parser.h
- Timestamp:
- Aug 10, 2015, 1:24:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Parser.h
r187890 r188219 54 54 55 55 class ExecState; 56 class Function BodyNode;56 class FunctionMetadataNode; 57 57 class FunctionParameters; 58 58 class Identifier; … … 839 839 840 840 // Used to determine type of error to report. 841 bool isFunction BodyNode(ScopeNode*) { return false; }842 bool isFunction BodyNode(FunctionBodyNode*) { return true; }841 bool isFunctionMetadataNode(ScopeNode*) { return false; } 842 bool isFunctionMetadataNode(FunctionMetadataNode*) { return true; } 843 843 844 844 ALWAYS_INLINE void next(unsigned lexerFlags = 0) … … 1316 1316 // code we assume that it was a syntax error since running out of stack is much less 1317 1317 // likely, and we are currently unable to distinguish between the two cases. 1318 if (isFunction BodyNode(static_cast<ParsedNode*>(0)) || m_hasStackOverflow)1318 if (isFunctionMetadataNode(static_cast<ParsedNode*>(0)) || m_hasStackOverflow) 1319 1319 error = ParserError(ParserError::StackOverflow, ParserError::SyntaxErrorNone, m_token); 1320 1320 else {
Note:
See TracChangeset
for help on using the changeset viewer.