Implement exponentiation operation. (#3692)
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -1179,6 +1179,10 @@ parser_error_to_string (parser_error_t error) /**< error code */
|
||||
{
|
||||
return "Illegal property in declaration context.";
|
||||
}
|
||||
case PARSER_ERR_INVALID_EXPONENTIATION:
|
||||
{
|
||||
return "Left operand of ** operator cannot be unary expression.";
|
||||
}
|
||||
case PARSER_ERR_FORMAL_PARAM_AFTER_REST_PARAMETER:
|
||||
{
|
||||
return "Rest parameter must be the last formal parameter.";
|
||||
|
||||
Reference in New Issue
Block a user