Fix incorrect assert expression in lexer_check_property_modifier (#4569)
In the lexer_check_property_modifier the assert incorrectly does an assignment instead of a simple equals check. JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
This commit is contained in:
@@ -3371,7 +3371,7 @@ void
|
||||
lexer_check_property_modifier (parser_context_t *context_p) /**< context */
|
||||
{
|
||||
JERRY_ASSERT (!(context_p->token.flags & LEXER_NO_SKIP_SPACES));
|
||||
JERRY_ASSERT (context_p->token.type = LEXER_LITERAL
|
||||
JERRY_ASSERT (context_p->token.type == LEXER_LITERAL
|
||||
&& context_p->token.lit_location.type == LEXER_IDENT_LITERAL);
|
||||
|
||||
lexer_skip_spaces (context_p);
|
||||
|
||||
Reference in New Issue
Block a user