Adding ecma_is_property_enumerable, ecma_is_property_configurable helpers.

This commit is contained in:
Ruben Ayrapetyan
2014-08-15 17:22:29 +04:00
parent 8f08c1c70e
commit 21a84afc4f
3 changed files with 52 additions and 9 deletions
+6 -6
View File
@@ -555,12 +555,12 @@ ecma_op_general_object_define_own_property (ecma_object_t *obj_p, /**< the objec
const bool is_current_data_descriptor = (current_p->type == ECMA_PROPERTY_NAMEDDATA);
const bool is_current_accessor_descriptor = (current_p->type == ECMA_PROPERTY_NAMEDACCESSOR);
const ecma_property_enumerable_value_t current_enumerable = (is_current_data_descriptor ?
current_p->u.named_data_property.enumerable
: current_p->u.named_accessor_property.enumerable);
const ecma_property_configurable_value_t current_configurable = (is_current_data_descriptor ?
current_p->u.named_data_property.configurable
: current_p->u.named_accessor_property.configurable);
const ecma_property_enumerable_value_t current_enumerable = (ecma_is_property_enumerable (current_p) ?
ECMA_PROPERTY_ENUMERABLE :
ECMA_PROPERTY_NOT_ENUMERABLE);
const ecma_property_configurable_value_t current_configurable = (ecma_is_property_configurable (current_p) ?
ECMA_PROPERTY_CONFIGURABLE :
ECMA_PROPERTY_NOT_CONFIGURABLE);
JERRY_ASSERT(is_current_data_descriptor || is_current_accessor_descriptor);