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:
Robert Fancsik
2019-01-25 11:03:11 +01:00
committed by Akos Kiss
parent 4c1ee94652
commit 924f4bbd74
2 changed files with 23 additions and 1 deletions
@@ -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 */