Support ES6 based octal literals (#3338)

JerryScript-DCO-1.0-Signed-off-by: Roland Takacs r.takacs2@partner.samsung.com
This commit is contained in:
Roland Takacs
2019-11-21 15:13:11 +01:00
committed by Robert Fancsik
parent 2ddf134cef
commit 996bf76f59
4 changed files with 91 additions and 14 deletions
+4
View File
@@ -828,6 +828,10 @@ parser_error_to_string (parser_error_t error) /**< error code */
{
return "Invalid (unexpected) character.";
}
case PARSER_ERR_INVALID_OCTAL_DIGIT:
{
return "Invalid octal digit.";
}
case PARSER_ERR_INVALID_HEX_DIGIT:
{
return "Invalid hexadecimal digit.";