Use ecma_op_object_get_property_names for property enumeration in built-ins implementation.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
This commit is contained in:
Ruben Ayrapetyan committed 2015-11-02 16:06:44 +03:00
1 parent 72208a61ee
commit 09b4d20718
6 files changed
+232 -363

No files matched your search

+2 -1
View File
@@ -644,7 +644,7 @@ ecma_op_object_get_property_names (ecma_object_t *obj_p, /**< object */
uint32_t insertion_pos = 0;
while (insertion_pos < array_index_name_pos
&& index <= array_index_names_p[insertion_pos])
&& index < array_index_names_p[insertion_pos])
{
insertion_pos++;
}
@@ -656,6 +656,7 @@ ecma_op_object_get_property_names (ecma_object_t *obj_p, /**< object */
else
{
JERRY_ASSERT (insertion_pos < array_index_name_pos);
JERRY_ASSERT (index < array_index_names_p[insertion_pos]);
uint32_t move_pos = ++array_index_name_pos;