Keywords must not contain escape sequences. (#3429)

The ES5.1 standard is unclear about this rule.

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2019-12-09 14:37:41 +01:00
committed by Dániel Bátyai
parent dc458d29fb
commit b8bc013fc0
10 changed files with 106 additions and 29 deletions
+1 -2
View File
@@ -288,8 +288,7 @@ typedef struct
typedef struct
{
uint8_t type; /**< token type */
uint8_t literal_is_reserved; /**< future reserved keyword
* (when char_literal.type is LEXER_IDENT_LITERAL) */
uint8_t ident_is_strict_keyword; /**< identifier is strict reserved keyword */
uint8_t extra_value; /**< helper value for different purposes */
uint8_t flags; /**< flag bits for the current token */
parser_line_counter_t line; /**< token start line */