mozilla/rhino — pull request #34 by anba (2012-02-28 20:20:53+00:00)
Title: Test262 chapter07

One single commit to resolve test case failures when running test262-chapter07 tests (only covered non-strict tests!). If you need smaller commits to ease reviewing, let me know!

-- André

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()