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 [email protected]
This commit is contained in:
Robert Fancsik authored and Akos Kiss committed 2019-01-25 11:03:11 +01:00
1 parent 4c1ee94652
commit 924f4bbd74
2 files changed
+23 -1

No files matched your search

@@ -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 */