@@ -1770,21 +1770,16 @@ ecma_op_bound_function_try_to_lazy_instantiate_property (ecma_object_t *object_p
17701770 */
17711771void
17721772ecma_op_function_list_lazy_property_names (ecma_object_t * object_p , /**< functionobject */
1773- bool separate_enumerable , /**< true - list enumerable properties into
1774- * main collection and non-enumerable
1775- * to collection of 'skipped
1776- * non-enumerable' properties,
1777- * false - list all properties into main
1778- * collection.
1779- */
1773+ uint32_t opts , /**< listing options using flags
1774+ * from ecma_list_properties_options_t */
17801775 ecma_collection_t * main_collection_p , /**< 'main' collection */
17811776 ecma_collection_t * non_enum_collection_p ) /**< skipped
17821777 * 'non-enumerable'
17831778 * collection */
17841779{
17851780 JERRY_UNUSED (main_collection_p );
17861781
1787- ecma_collection_t * for_non_enumerable_p = separate_enumerable ? non_enum_collection_p : main_collection_p ;
1782+ ecma_collection_t * for_non_enumerable_p = ( opts & ECMA_LIST_ENUMERABLE ) ? non_enum_collection_p : main_collection_p ;
17881783
17891784 /* 'length' property is non-enumerable (ECMA-262 v5, 13.2.5) */
17901785 ecma_collection_push_back (for_non_enumerable_p , ecma_make_magic_string_value (LIT_MAGIC_STRING_LENGTH ));
@@ -1825,21 +1820,15 @@ ecma_op_function_list_lazy_property_names (ecma_object_t *object_p, /**< functio
18251820 * ecma_op_external_function_try_to_lazy_instantiate_property
18261821 */
18271822void
1828- ecma_op_external_function_list_lazy_property_names (bool separate_enumerable , /**< true - list enumerable properties
1829- * into main collection and
1830- * non-enumerable to collection
1831- * of 'skipped non-enumerable'
1832- * properties,
1833- * false - list all properties into
1834- * main collection.
1835- */
1836- ecma_collection_t * main_collection_p , /**< 'main' collection */
1837- ecma_collection_t * non_enum_collection_p ) /**< skipped
1838- * collection */
1823+ ecma_op_external_function_list_lazy_property_names (uint32_t opts , /**< listing options using flags
1824+ * from ecma_list_properties_options_t */
1825+ ecma_collection_t * main_collection_p , /**< 'main' collection */
1826+ ecma_collection_t * non_enum_collection_p ) /**< skipped
1827+ * collection */
18391828{
18401829 JERRY_UNUSED (main_collection_p );
18411830
1842- ecma_collection_t * for_non_enumerable_p = separate_enumerable ? non_enum_collection_p : main_collection_p ;
1831+ ecma_collection_t * for_non_enumerable_p = ( opts & ECMA_LIST_ENUMERABLE ) ? non_enum_collection_p : main_collection_p ;
18431832
18441833 /* 'prototype' property is non-enumerable (ECMA-262 v5, 13.2.18) */
18451834 ecma_collection_push_back (for_non_enumerable_p , ecma_make_magic_string_value (LIT_MAGIC_STRING_PROTOTYPE ));
@@ -1853,22 +1842,16 @@ ecma_op_external_function_list_lazy_property_names (bool separate_enumerable, /*
18531842 * ecma_op_bound_function_try_to_lazy_instantiate_property
18541843 */
18551844void
1856- ecma_op_bound_function_list_lazy_property_names (bool separate_enumerable , /**< true - list enumerable properties
1857- * into main collection and
1858- * non-enumerable to collection
1859- * of 'skipped non-enumerable'
1860- * properties,
1861- * false - list all properties into
1862- * main collection.
1863- */
1845+ ecma_op_bound_function_list_lazy_property_names (uint32_t opts , /**< listing options using flags
1846+ * from ecma_list_properties_options_t */
18641847 ecma_collection_t * main_collection_p , /**< 'main' collection */
18651848 ecma_collection_t * non_enum_collection_p ) /**< skipped
18661849 * 'non-enumerable'
18671850 * collection */
18681851{
18691852 JERRY_UNUSED (main_collection_p );
18701853
1871- ecma_collection_t * for_non_enumerable_p = separate_enumerable ? non_enum_collection_p : main_collection_p ;
1854+ ecma_collection_t * for_non_enumerable_p = ( opts & ECMA_LIST_ENUMERABLE ) ? non_enum_collection_p : main_collection_p ;
18721855
18731856 /* 'length' property is non-enumerable (ECMA-262 v5, 13.2.5) */
18741857 ecma_collection_push_back (for_non_enumerable_p , ecma_make_magic_string_value (LIT_MAGIC_STRING_LENGTH ));
0 commit comments