Fix freeing this_arg in ecma_builtin_promise_race_or_all (#3482)

Fixes #3478

JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
This commit is contained in:
Daniel Balla
2020-01-03 14:18:40 +01:00
committed by Robert Fancsik
parent 518fcf2c6a
commit e21e4a18ba
2 changed files with 21 additions and 1 deletions
@@ -515,7 +515,6 @@ ecma_builtin_promise_race_or_all (ecma_value_t this_arg, /**< 'this' argument */
if (!ecma_is_value_null (species_symbol) && !ecma_is_value_undefined (species_symbol))
{
ecma_free_value (constructor_value);
constructor_value = species_symbol;
}
else