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
@@ -852,6 +852,10 @@ parser_error_to_string (parser_error_t error) /**< error code */
|
||||
{
|
||||
return "Character cannot be part of an identifier.";
|
||||
}
|
||||
case PARSER_ERR_INVALID_KEYWORD:
|
||||
{
|
||||
return "Escape sequences are not allowed in keywords.";
|
||||
}
|
||||
case PARSER_ERR_INVALID_NUMBER:
|
||||
{
|
||||
return "Invalid number.";
|
||||
|
||||
Reference in New Issue
Block a user