Changeset 209350 in webkit
- Timestamp:
- Dec 5, 2016 2:20:08 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r209328 r209350 1 2016-12-05 Caitlin Potter <caitp@igalia.com> 2 3 [JSC] report unexpected token when "async" is followed by identifier 4 https://bugs.webkit.org/show_bug.cgi?id=165091 5 6 Reviewed by Mark Lam. 7 8 * stress/bug-165091.js: 9 1 10 2016-12-05 Keith Miller <keith_miller@apple.com> 2 11 -
trunk/JSTests/stress/bug-165091.js
r209293 r209350 11 11 } 12 12 13 shouldThrowSyntaxError("0/-async J", "SyntaxError: Cannot parse member expression.") 13 shouldThrowSyntaxError("0/-async J", "Unexpected identifier 'J'") 14 -
trunk/Source/JavaScriptCore/ChangeLog
r209328 r209350 1 2016-12-05 Caitlin Potter <caitp@igalia.com> 2 3 [JSC] report unexpected token when "async" is followed by identifier 4 https://bugs.webkit.org/show_bug.cgi?id=165091 5 6 Reviewed by Mark Lam. 7 8 Report a SyntaxError, in order to report correct error in contexts 9 an async ArrowFunction cannot occur. Also corrects errors in comment 10 describing JSTokenType bitfield, which was added in r209293. 11 12 * parser/Parser.cpp: 13 (JSC::Parser<LexerType>::parseMemberExpression): 14 * parser/ParserTokens.h: 15 1 16 2016-12-05 Keith Miller <keith_miller@apple.com> 2 17 -
trunk/Source/JavaScriptCore/parser/Parser.cpp
r208933 r209350 4477 4477 // AsyncArrowFunction 4478 4478 forceClassifyExpressionError(ErrorIndicatesAsyncArrowFunction); 4479 return 0;4479 failDueToUnexpectedToken(); 4480 4480 } 4481 4481 baseIsAsyncKeyword = true; -
trunk/Source/JavaScriptCore/parser/ParserTokens.h
r209293 r209350 35 35 36 36 enum { 37 // Token Bitfield: 0b000000000RTE IIIIIIIIPPPPKUXXXXXX37 // Token Bitfield: 0b000000000RTE000IIIIPPPPKUXXXXXXX 38 38 // R = right-associative bit 39 39 // T = unterminated error flag
Note: See TracChangeset
for help on using the changeset viewer.