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:
committed by
Dániel Bátyai
parent
dc458d29fb
commit
b8bc013fc0
@@ -1147,7 +1147,7 @@ scanner_scope_find_let_declaration (parser_context_t *context_p, /**< context */
|
||||
{
|
||||
uint8_t *destination_p = (uint8_t *) scanner_malloc (context_p, literal_p->length);
|
||||
|
||||
lexer_convert_ident_to_utf8 (literal_p->char_p, destination_p, literal_p->length);
|
||||
lexer_convert_ident_to_cesu8 (literal_p->char_p, destination_p, literal_p->length);
|
||||
|
||||
name_p = ecma_new_ecma_string_from_utf8 (destination_p, literal_p->length);
|
||||
scanner_free (destination_p, literal_p->length);
|
||||
|
||||
Reference in New Issue
Block a user