Implement Object.{entries, values} built-in methods (#3993)
Object.keys also updated to follow the ES11 standard. JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs@inf.u-szeged.hu
This commit is contained in:
@@ -357,6 +357,18 @@ typedef enum
|
||||
* the fast access mode array back to normal array */
|
||||
} ecma_list_properties_options_t;
|
||||
|
||||
/**
|
||||
* Enumerable property name listing options.
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
ECMA_ENUMERABLE_PROPERTY_KEYS, /**< List only property names */
|
||||
ECMA_ENUMERABLE_PROPERTY_VALUES, /**< List only property values */
|
||||
ECMA_ENUMERABLE_PROPERTY_ENTRIES, /**< List both propery names and values */
|
||||
|
||||
ECMA_ENUMERABLE_PROPERTY__COUNT /**< Number of enumerable property listing types */
|
||||
} ecma_enumerable_property_names_options_t;
|
||||
|
||||
/**
|
||||
* List enumerable properties and include the prototype chain.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user