Fix the order of value finalizing in ecma_builtin_typedarray_prototype_join (#2726)
This patch fixes #2724. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
committed by
Akos Kiss
parent
4c1ee94652
commit
924f4bbd74
@@ -1052,9 +1052,9 @@ ecma_builtin_typedarray_prototype_join (ecma_value_t this_arg, /**< this argumen
|
||||
}
|
||||
ecma_free_value (separator_value);
|
||||
|
||||
ECMA_OP_TO_NUMBER_FINALIZE (length_number);
|
||||
ecma_free_value (length_value);
|
||||
ecma_free_value (obj_value);
|
||||
ECMA_OP_TO_NUMBER_FINALIZE (length_number);
|
||||
return ret_value;
|
||||
} /* ecma_builtin_typedarray_prototype_join */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user