Eliminate dead code in ecma_builtin_object_object_get_prototype_of (#2276)

JerryScript-DCO-1.0-Signed-off-by: Peter Marki marpeter@inf.u-szeged.hu
This commit is contained in:
Peter Marki 2018-04-11 14:03:35 +02:00 committed by yichoi
parent e91471727f
commit d86a507fdf

View File

@ -137,10 +137,12 @@ ecma_builtin_object_object_get_prototype_of (ecma_value_t this_arg, /**< 'this'
ret_value = ECMA_VALUE_NULL;
}
#ifndef CONFIG_DISABLE_ES2015_BUILTIN
if (!was_object)
{
ecma_free_value (arg);
}
#endif /* !CONFIG_DISABLE_ES2015_BUILTIN */
return ret_value;
} /* ecma_builtin_object_object_get_prototype_of */