mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Adding stub for Array construction routine
This commit is contained in:
parent
5713373279
commit
3bcf02137e
@ -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.
|
||||
*
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user