Adding stub for Array construction routine

This commit is contained in:
Ruben Ayrapetyan 2014-08-22 17:17:17 +04:00
parent 5713373279
commit 3bcf02137e
2 changed files with 23 additions and 0 deletions

View File

@ -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.
*

View File

@ -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,