Fix error throw in jerry_define_own_property (#4662)

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2021-04-27 09:42:20 +02:00
committed by GitHub
parent 8aaabd8b01
commit 823a8b128d
5 changed files with 61 additions and 70 deletions
+4 -13
View File
@@ -1310,22 +1310,13 @@ typedef struct
* Note:
* If a component of descriptor is undefined then corresponding
* field should contain it's default value.
* The struct members must be in this order or keep in sync with ecma_property_descriptor_status_flags_t.
*/
typedef struct
{
/** any combination of ecma_property_descriptor_status_flags_t bits */
uint16_t flags;
/** [[Value]] */
ecma_value_t value;
/** [[Get]] */
ecma_object_t *get_p;
/** [[Set]] */
ecma_object_t *set_p;
uint16_t flags; /**< any combination of jerry_property_descriptor_flags_t bits */
ecma_value_t value; /**< [[Value]] */
ecma_object_t *get_p; /**< [[Get]] */
ecma_object_t *set_p; /**< [[Set]] */
} ecma_property_descriptor_t;
/**