Skip to content

Commit b788802

Browse files
committed
Fix "ICE: Assertion 'context_p->stack_depth == 0'"
1 parent 71a898c commit b788802

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jerry-core/parser/js/js-parser-expr.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ parser_emit_unary_lvalue_opcode (parser_context_t *context_p, /**< context */
297297
goto Invalid_LeftHandSide;
298298
}
299299
context_p->last_cbc_opcode = PARSER_TO_EXT_OPCODE (CBC_EXT_PUSH_PRIVATE_PROP_LITERAL_REFERENCE);
300+
/* Manually adjusting stack usage. */
301+
JERRY_ASSERT (context_p->stack_depth > 0);
302+
context_p->stack_depth--;
300303
}
301304
else if (opcode == CBC_DELETE_PUSH_RESULT)
302305
{

0 commit comments

Comments
 (0)