Fix property descriptor queries (#3840)
When the getOwnPropertyDescriptor method was invoked the input property descriptor was not cleared in every case. This could lead to problems when the property descriptor is not set/modified by the getOwnPropertyDescriptor call, resulting in a failure at a later state. Related to this the Proxy getOwnPropertyDescriptor method incorrectly returned "undefined" value in a single case. JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
This commit is contained in:
@@ -735,7 +735,7 @@ ecma_proxy_object_get_own_property_descriptor (ecma_object_t *obj_p, /**< proxy
|
||||
/* .a */
|
||||
if (ecma_is_value_false (target_status))
|
||||
{
|
||||
return ECMA_VALUE_UNDEFINED;
|
||||
return ECMA_VALUE_FALSE;
|
||||
}
|
||||
/* .b */
|
||||
if (!(target_desc.flags & ECMA_PROP_IS_CONFIGURABLE))
|
||||
|
||||
Reference in New Issue
Block a user