Full implementation of [[DefineOwnProperty]] for array objects.

This commit is contained in:
Ruben Ayrapetyan
2014-08-13 14:55:40 +04:00
parent 2e1da4cae5
commit 4fe85cdd1a
6 changed files with 228 additions and 90 deletions
+9 -9
View File
@@ -42,7 +42,7 @@ ecma_op_object_get (ecma_object_t *obj_p, /**< the object */
const ecma_object_type_t type = obj_p->u.object.type;
switch ( type )
switch (type)
{
case ECMA_OBJECT_TYPE_GENERAL:
case ECMA_OBJECT_TYPE_ARRAY:
@@ -81,7 +81,7 @@ ecma_op_object_get_own_property (ecma_object_t *obj_p, /**< the object */
const ecma_object_type_t type = obj_p->u.object.type;
switch ( type )
switch (type)
{
case ECMA_OBJECT_TYPE_GENERAL:
case ECMA_OBJECT_TYPE_ARRAY:
@@ -120,7 +120,7 @@ ecma_op_object_get_property (ecma_object_t *obj_p, /**< the object */
const ecma_object_type_t type = obj_p->u.object.type;
switch ( type )
switch (type)
{
case ECMA_OBJECT_TYPE_GENERAL:
case ECMA_OBJECT_TYPE_ARGUMENTS:
@@ -161,7 +161,7 @@ ecma_op_object_put (ecma_object_t *obj_p, /**< the object */
const ecma_object_type_t type = obj_p->u.object.type;
switch ( type )
switch (type)
{
case ECMA_OBJECT_TYPE_GENERAL:
case ECMA_OBJECT_TYPE_ARGUMENTS:
@@ -200,7 +200,7 @@ ecma_op_object_can_put (ecma_object_t *obj_p, /**< the object */
const ecma_object_type_t type = obj_p->u.object.type;
switch ( type )
switch (type)
{
case ECMA_OBJECT_TYPE_GENERAL:
case ECMA_OBJECT_TYPE_ARGUMENTS:
@@ -239,7 +239,7 @@ ecma_op_object_has_property (ecma_object_t *obj_p, /**< the object */
const ecma_object_type_t type = obj_p->u.object.type;
switch ( type )
switch (type)
{
case ECMA_OBJECT_TYPE_GENERAL:
case ECMA_OBJECT_TYPE_ARGUMENTS:
@@ -279,7 +279,7 @@ ecma_op_object_delete (ecma_object_t *obj_p, /**< the object */
const ecma_object_type_t type = obj_p->u.object.type;
switch ( type )
switch (type)
{
case ECMA_OBJECT_TYPE_GENERAL:
case ECMA_OBJECT_TYPE_ARRAY:
@@ -317,7 +317,7 @@ ecma_op_object_default_value (ecma_object_t *obj_p, /**< the object */
const ecma_object_type_t type = obj_p->u.object.type;
switch ( type )
switch (type)
{
case ECMA_OBJECT_TYPE_GENERAL:
case ECMA_OBJECT_TYPE_ARGUMENTS:
@@ -358,7 +358,7 @@ ecma_op_object_define_own_property (ecma_object_t *obj_p, /**< the object */
const ecma_object_type_t type = obj_p->u.object.type;
switch ( type )
switch (type)
{
case ECMA_OBJECT_TYPE_GENERAL:
case ECMA_OBJECT_TYPE_FUNCTION: