From a56e31f194fe52000ed95605ae3c92390cd60ad5 Mon Sep 17 00:00:00 2001 From: Rafal Walczyna Date: Tue, 2 Jun 2020 18:01:45 +0200 Subject: [PATCH] Update ES6 Set and Map "size" accessor descriptors (#3826) In ES6 accessors of built in object are by default configurable. JerryScript-DCO-1.0-Signed-off-by: Rafal Walczyna r.walczyna@samsung.com --- .../ecma/builtin-objects/ecma-builtin-map-prototype.inc.h | 2 +- .../ecma/builtin-objects/ecma-builtin-set-prototype.inc.h | 2 +- tests/test262-es6-excludelist.xml | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/jerry-core/ecma/builtin-objects/ecma-builtin-map-prototype.inc.h b/jerry-core/ecma/builtin-objects/ecma-builtin-map-prototype.inc.h index 68e56e6b59..a8c25e1419 100644 --- a/jerry-core/ecma/builtin-objects/ecma-builtin-map-prototype.inc.h +++ b/jerry-core/ecma/builtin-objects/ecma-builtin-map-prototype.inc.h @@ -54,7 +54,7 @@ ROUTINE (LIT_GLOBAL_SYMBOL_ITERATOR, ecma_builtin_map_prototype_object_entries, /* ECMA-262 v6, 23.1.3.10 */ ACCESSOR_READ_ONLY (LIT_MAGIC_STRING_SIZE, ecma_builtin_map_prototype_object_size_getter, - ECMA_PROPERTY_FIXED) + ECMA_PROPERTY_FLAG_CONFIGURABLE) #endif /* ENABLED (JERRY_ES2015_BUILTIN_MAP) */ diff --git a/jerry-core/ecma/builtin-objects/ecma-builtin-set-prototype.inc.h b/jerry-core/ecma/builtin-objects/ecma-builtin-set-prototype.inc.h index baafe95b2a..9e070503e2 100644 --- a/jerry-core/ecma/builtin-objects/ecma-builtin-set-prototype.inc.h +++ b/jerry-core/ecma/builtin-objects/ecma-builtin-set-prototype.inc.h @@ -52,7 +52,7 @@ ROUTINE (LIT_GLOBAL_SYMBOL_ITERATOR, ecma_builtin_set_prototype_object_values, 0 ACCESSOR_READ_ONLY (LIT_MAGIC_STRING_SIZE, ecma_builtin_set_prototype_object_size_getter, - ECMA_PROPERTY_FIXED) + ECMA_PROPERTY_FLAG_CONFIGURABLE) #endif /* ENABLED (JERRY_ES2015_BUILTIN_SET) */ diff --git a/tests/test262-es6-excludelist.xml b/tests/test262-es6-excludelist.xml index 26482f647e..d8d5dfa907 100644 --- a/tests/test262-es6-excludelist.xml +++ b/tests/test262-es6-excludelist.xml @@ -45,7 +45,6 @@ - @@ -146,7 +145,6 @@ -