Implement parsing await. (#3738)
Several bugs fixed for parsing yield as well. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -951,7 +951,11 @@ parser_error_to_string (parser_error_t error) /**< error code */
|
||||
}
|
||||
case PARSER_ERR_YIELD_NOT_ALLOWED:
|
||||
{
|
||||
return "Incorrect use of yield keyword.";
|
||||
return "Yield expression is not allowed here.";
|
||||
}
|
||||
case PARSER_ERR_AWAIT_NOT_ALLOWED:
|
||||
{
|
||||
return "Await expression is not allowed here.";
|
||||
}
|
||||
case PARSER_ERR_FOR_IN_OF_DECLARATION:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user