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:
Péter Gál 2021-02-05 11:24:29 +01:00 committed by GitHub
parent 0628ae1e7b
commit ca6c2194bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);