Added missing object deref in ecma_promise_reject_or_resolve (#4144)
fixes #4131 JerryScript-DCO-1.0-Signed-off-by: bence gabor kis kisbg@inf.u-szeged.hu
This commit is contained in:
@@ -806,6 +806,7 @@ ecma_promise_reject_or_resolve (ecma_value_t this_arg, /**< "this" argument */
|
||||
|
||||
if (ECMA_IS_VALUE_ERROR (call_ret))
|
||||
{
|
||||
ecma_deref_object (capability_obj_p);
|
||||
return call_ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user