Fixing postfix increment and postfix decrement opcodes handlers.
This commit is contained in:
@@ -288,7 +288,7 @@ opfunc_post_incr (opcode_t opdata, /**< operation data */
|
|||||||
// assignment of operator result to register variable
|
// assignment of operator result to register variable
|
||||||
ecma_completion_value_t reg_assignment_res = set_variable_value (int_data,
|
ecma_completion_value_t reg_assignment_res = set_variable_value (int_data,
|
||||||
dst_var_idx,
|
dst_var_idx,
|
||||||
old_value.u.value);
|
old_num_value.u.value);
|
||||||
JERRY_ASSERT (ecma_is_completion_value_empty (reg_assignment_res));
|
JERRY_ASSERT (ecma_is_completion_value_empty (reg_assignment_res));
|
||||||
|
|
||||||
ECMA_FINALIZE (old_num_value);
|
ECMA_FINALIZE (old_num_value);
|
||||||
@@ -336,7 +336,7 @@ opfunc_post_decr (opcode_t opdata, /**< operation data */
|
|||||||
// assignment of operator result to register variable
|
// assignment of operator result to register variable
|
||||||
ecma_completion_value_t reg_assignment_res = set_variable_value (int_data,
|
ecma_completion_value_t reg_assignment_res = set_variable_value (int_data,
|
||||||
dst_var_idx,
|
dst_var_idx,
|
||||||
old_value.u.value);
|
old_num_value.u.value);
|
||||||
JERRY_ASSERT (ecma_is_completion_value_empty (reg_assignment_res));
|
JERRY_ASSERT (ecma_is_completion_value_empty (reg_assignment_res));
|
||||||
|
|
||||||
ECMA_FINALIZE (old_num_value);
|
ECMA_FINALIZE (old_num_value);
|
||||||
|
|||||||
Reference in New Issue
Block a user