Fix the assertion for VM_OC_EVAL. (#3366)
Eval flag can be set for spreaded argument function calls as well. This patch fixes #3364. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
committed by
Dániel Bátyai
parent
4d422e17df
commit
f63e4c363b
+4
-1
@@ -2397,7 +2397,10 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */
|
||||
case VM_OC_EVAL:
|
||||
{
|
||||
JERRY_CONTEXT (status_flags) |= ECMA_STATUS_DIRECT_EVAL;
|
||||
JERRY_ASSERT (*byte_code_p >= CBC_CALL && *byte_code_p <= CBC_CALL2_PROP_BLOCK);
|
||||
JERRY_ASSERT ((*byte_code_p >= CBC_CALL && *byte_code_p <= CBC_CALL2_PROP_BLOCK)
|
||||
|| (*byte_code_p == CBC_EXT_OPCODE
|
||||
&& byte_code_p[1] >= CBC_EXT_SPREAD_CALL
|
||||
&& byte_code_p[1] <= CBC_EXT_SPREAD_CALL_PROP_BLOCK));
|
||||
continue;
|
||||
}
|
||||
case VM_OC_CALL:
|
||||
|
||||
Reference in New Issue
Block a user