Fix three minor issues. (#3165)
1) Remove an unnecessary check. 2) Check that comma is not allowed between question mark and colon 3) Create a hex decoding variant which does not throw error. These are quality improvements, they have no negative impact. 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
711b06d018
commit
a8fb4eee1e
@@ -434,6 +434,11 @@ scanner_scan_primary_expression_end (parser_context_t *context_p, /**< context *
|
||||
scanner_context_p->mode = SCAN_MODE_VAR_STATEMENT;
|
||||
return SCAN_NEXT_TOKEN;
|
||||
}
|
||||
case SCAN_STACK_COLON_EXPRESSION:
|
||||
{
|
||||
scanner_raise_error (context_p);
|
||||
break;
|
||||
}
|
||||
#if ENABLED (JERRY_ES2015_ARROW_FUNCTION)
|
||||
case SCAN_STACK_ARROW_EXPRESSION:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user