diff options
author | Hyukwoo Park <hyukwoo.park@samsung.com> | 2020-02-14 18:25:26 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 10:25:26 +0100 |
commit | 54e4de39ab77537f987ea5f1a2e630e68503afce (patch) | |
tree | 589196cb768dcdd5fe443274f189eee98a729b0b /jerry-core/ecma/builtin-objects/ecma-builtin-array.inc.h | |
parent | 4d67ac3225f1f79e6f6e481eb2294dd642557d30 (diff) |
Fix attributes of length property for builtin objects (#3556)
* length property has the attributes {[[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true} based on ECMA-262 v6, 19.2.4.1
JerryScript-DCO-1.0-Signed-off-by: HyukWoo Park hyukwoo.park@samsung.com
Diffstat (limited to 'jerry-core/ecma/builtin-objects/ecma-builtin-array.inc.h')
-rw-r--r-- | jerry-core/ecma/builtin-objects/ecma-builtin-array.inc.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/jerry-core/ecma/builtin-objects/ecma-builtin-array.inc.h b/jerry-core/ecma/builtin-objects/ecma-builtin-array.inc.h index 43ff947b..ff1df5f0 100644 --- a/jerry-core/ecma/builtin-objects/ecma-builtin-array.inc.h +++ b/jerry-core/ecma/builtin-objects/ecma-builtin-array.inc.h @@ -32,10 +32,9 @@ OBJECT_VALUE (LIT_MAGIC_STRING_PROTOTYPE, /* Number properties: * (property name, object pointer getter) */ -/* ECMA-262 v5, 15.4.3 */ NUMBER_VALUE (LIT_MAGIC_STRING_LENGTH, 1, - ECMA_PROPERTY_FIXED) + ECMA_PROPERTY_FLAG_DEFAULT_LENGTH) /* Routine properties: * (property name, C routine name, arguments number or NON_FIXED, value of the routine's length property) */ |