Implement environment record for class constructors (#4207)

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2020-10-12 13:13:38 +02:00
committed by GitHub
parent d317124650
commit 3c2a3f5dd9
11 changed files with 220 additions and 95 deletions
+13
View File
@@ -319,6 +319,19 @@ typedef struct ecma_native_pointer_t
struct ecma_native_pointer_t *next_p; /**< points to the next ecma_native_pointer_t element */
} ecma_native_pointer_t;
#if ENABLED (JERRY_ESNEXT)
/**
* Representation for class constructor environment record.
*/
typedef struct
{
ecma_value_t this_binding; /**< this binding */
ecma_value_t function_object; /**< function object */
} ecma_environment_record_t;
#endif /* ENABLED (JERRY_ESNEXT) */
/**
* Property list:
* The property list of an object is a chain list of various items.