Fix the return value of jerry_to_property_descriptor function (#4371)

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2021-01-07 11:09:07 +01:00
committed by GitHub
parent cab266f21d
commit 7baaafa405
5 changed files with 39 additions and 38 deletions
+3 -4
View File
@@ -717,14 +717,13 @@ ecma_op_from_property_descriptor (const ecma_property_descriptor_t *src_prop_des
* See also:
* ECMA-262 v5, 8.10.5
*
* @return ecma value
* Returned value must be freed with ecma_free_value
* @return ECMA_VALUE_EMPTY if successful, ECMA_VALUE_ERROR otherwise
*/
ecma_value_t
ecma_op_to_property_descriptor (ecma_value_t obj_value, /**< object value */
ecma_property_descriptor_t *out_prop_desc_p) /**< [out] filled property descriptor
if return value is normal
empty completion value */
* if the operation is successful,
* unmodified otherwise */
{
/* 1. */
if (!ecma_is_value_object (obj_value))