Add Symbol support to integrity testing routine (#4101)

Properties with Symbol caused assertion to fail

JerryScript-DCO-1.0-Signed-off-by: Rafal Walczyna r.walczyna@samsung.com
This commit is contained in:
Rafal Walczyna
2020-08-03 17:29:34 +02:00
committed by GitHub
parent e9b794f629
commit 4ce4b617fd
2 changed files with 3 additions and 1 deletions
@@ -596,7 +596,7 @@ ecma_builtin_object_test_integrity_level (ecma_object_t *obj_p, /**< routine's a
for (uint32_t i = 0; i < props_p->item_count; i++)
{
ecma_string_t *property_name_p = ecma_get_string_from_value (buffer_p[i]);
ecma_string_t *property_name_p = ecma_get_prop_name_from_value (buffer_p[i]);
/* 2.a */
ecma_property_descriptor_t prop_desc;
@@ -26,3 +26,5 @@ obj[s2] = 3
assert(obj[s1] === 1);
assert(obj[s2] === undefined);
assert(delete obj[s1] === false);
assert(Object.isFrozen(obj));