Little refactoring of control paths in general objects' [[DefineOwnProperty]] to satisfy cppcheck's requirements.
This commit is contained in:
@@ -599,8 +599,7 @@ ecma_op_general_object_define_own_property (ecma_object_t *obj_p, /**< the objec
|
||||
{
|
||||
return ecma_reject (is_throw);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
// 4.
|
||||
|
||||
// a.
|
||||
@@ -632,7 +631,6 @@ ecma_op_general_object_define_own_property (ecma_object_t *obj_p, /**< the objec
|
||||
|
||||
return ecma_make_simple_completion_value (ECMA_SIMPLE_VALUE_TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
// 5.
|
||||
if (is_property_desc_generic_descriptor
|
||||
|
||||
Reference in New Issue
Block a user