-
Notifications
You must be signed in to change notification settings - Fork 861
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TokenStream: - remove check for isJSFormatChar() in getChar[IgnoreLineEnd](), no longer neccessary in ES5 - amend readRegExp() to catch some additional invalid regular expression literals - update keyword list in stringToKeyword() to match ES5 - getToken(): -- unicode escaped identifiers still need to comply to identifier naming rules -- save string for Token.RESERVED (needed in Parser) -- hex-integer needs at least one hex-digit -- invalid escape sequences in string literals now result in an error Parser: - remove unused second argument of propertyName() to facilitate code reuse - no longer check for isReservedKeywordAsIdentifier() in convertToName() since ES5 allows identifier names in object literals and property access - handle Token.RESERVED in convertToName()
- Loading branch information
Showing
2 changed files
with
104 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.