Little refactoring of control paths in general objects' [[DefineOwnProperty]] to satisfy cppcheck's requirements.

This commit is contained in:
Ruben Ayrapetyan
2014-09-17 15:37:12 +04:00
parent 5df12d2e04
commit 59ef3bf074
+1 -3
View File
@@ -599,8 +599,7 @@ ecma_op_general_object_define_own_property (ecma_object_t *obj_p, /**< the objec
{ {
return ecma_reject (is_throw); return ecma_reject (is_throw);
} }
else
{
// 4. // 4.
// a. // 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); return ecma_make_simple_completion_value (ECMA_SIMPLE_VALUE_TRUE);
} }
}
// 5. // 5.
if (is_property_desc_generic_descriptor if (is_property_desc_generic_descriptor