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 -1
View File
@@ -367,7 +367,7 @@ parser_module_parse_export_clause (parser_context_t *context_p) /**< parser cont
/* 15.2.3.1 The referenced binding cannot be a reserved word. */
if (context_p->token.type != LEXER_LITERAL
|| context_p->token.lit_location.type != LEXER_IDENT_LITERAL
|| context_p->token.literal_is_reserved)
|| context_p->token.ident_is_strict_keyword)
{
parser_raise_error (context_p, PARSER_ERR_IDENTIFIER_EXPECTED);
}