Fix inherited property type check in ordinary object.[[Set]] (#4425)

This patch fixes #4405.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik
2021-01-06 11:25:14 +01:00
committed by GitHub
parent 2ac3c08c14
commit cab266f21d
2 changed files with 28 additions and 1 deletions
+2 -1
View File
@@ -1509,7 +1509,8 @@ ecma_op_object_put_with_receiver (ecma_object_t *object_p, /**< the object */
&property_ref,
ECMA_PROPERTY_GET_NO_OPTIONS);
if (inherited_property != ECMA_PROPERTY_TYPE_NOT_FOUND)
if (inherited_property != ECMA_PROPERTY_TYPE_NOT_FOUND
&& inherited_property != ECMA_PROPERTY_TYPE_NOT_FOUND_AND_STOP)
{
if (ECMA_PROPERTY_GET_TYPE (inherited_property) == ECMA_PROPERTY_TYPE_NAMEDACCESSOR)
{