mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
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:
parent
0628ae1e7b
commit
ca6c2194bb
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user