diff --git a/src/libecmaoperations/ecma-array-object.c b/src/libecmaoperations/ecma-array-object.c index b3d0ab54b..8a92909b0 100644 --- a/src/libecmaoperations/ecma-array-object.c +++ b/src/libecmaoperations/ecma-array-object.c @@ -49,6 +49,25 @@ ecma_reject (bool is_throw) /**< Throw flag */ } } /* ecma_reject */ +/** + * Array object creation operation. + * + * See also: ECMA-262 v5, 15.4.2.1 + * ECMA-262 v5, 15.4.2.2 + * + * @return pointer to newly created Array object + */ +ecma_object_t* +ecma_op_create_array_object (ecma_value_t *arguments_list_p, /**< list of arguments that + are passed to Array constructor */ + ecma_length_t arguments_list_len) /**< length of the arguments' list */ +{ + JERRY_ASSERT (arguments_list_len == 0 + || arguments_list_p != NULL); + + JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arguments_list_p, arguments_list_len); +} /* ecma_op_create_array_object */ + /** * Reduce length of Array to specified value. * diff --git a/src/libecmaoperations/ecma-array-object.h b/src/libecmaoperations/ecma-array-object.h index 3573007d5..37142b942 100644 --- a/src/libecmaoperations/ecma-array-object.h +++ b/src/libecmaoperations/ecma-array-object.h @@ -25,6 +25,10 @@ * @{ */ +extern ecma_object_t* +ecma_op_create_array_object (ecma_value_t *arguments_list_p, + ecma_length_t arguments_list_len); + extern ecma_completion_value_t ecma_op_array_object_define_own_property (ecma_object_t *obj_p, ecma_string_t *property_name_p,