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:
Roland Takacs
2020-07-14 15:59:40 +02:00
committed by GitHub
parent 9dbbcab49d
commit 8fdbc6a85b
9 changed files with 470 additions and 9 deletions
+12
View File
@@ -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.
*/