From 64774d30ae8b33c7b092f7d7974e38df321799b7 Mon Sep 17 00:00:00 2001 From: Daniel Balla Date: Thu, 3 Oct 2019 10:28:36 +0300 Subject: [PATCH] Fix typos "enumberable" -> "enumerable" (#3189) JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu --- jerry-core/ecma/base/ecma-globals.h | 4 ++-- jerry-core/ecma/operations/ecma-array-object.c | 2 +- jerry-core/ecma/operations/ecma-objects-general.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/jerry-core/ecma/base/ecma-globals.h b/jerry-core/ecma/base/ecma-globals.h index 19d150eb3..604e3ae3c 100644 --- a/jerry-core/ecma/base/ecma-globals.h +++ b/jerry-core/ecma/base/ecma-globals.h @@ -999,10 +999,10 @@ typedef struct * Bitfield which represents a namedata property options in an ecma_property_descriptor_t * Attributes: * - is_get_defined, is_set_defined : false - * - is_configurable, is_writable, is_enumberable : undefined (false) + * - is_configurable, is_writable, is_enumerable : undefined (false) * - is_throw : undefined (false) * - is_value_defined : true - * - is_configurable_defined, is_writable_defined, is_enumberable_defined : true + * - is_configurable_defined, is_writable_defined, is_enumerable_defined : true */ #define ECMA_NAME_DATA_PROPERTY_DESCRIPTOR_BITS 0x3c0 diff --git a/jerry-core/ecma/operations/ecma-array-object.c b/jerry-core/ecma/operations/ecma-array-object.c index ad372a182..03a7b2e38 100644 --- a/jerry-core/ecma/operations/ecma-array-object.c +++ b/jerry-core/ecma/operations/ecma-array-object.c @@ -497,7 +497,7 @@ ecma_fast_array_set_length (ecma_object_t *object_p, /**< fast access mode array /** * Get collection of property names of a fast access mode array object * - * Note: Since the fast array object only contains indexed, enumberable, writable, configurable properties + * Note: Since the fast array object only contains indexed, enumerable, writable, configurable properties * we can return a collection of non-array hole array indices * * @return collection of strings - property names diff --git a/jerry-core/ecma/operations/ecma-objects-general.c b/jerry-core/ecma/operations/ecma-objects-general.c index 188410545..b8b2ebc89 100644 --- a/jerry-core/ecma/operations/ecma-objects-general.c +++ b/jerry-core/ecma/operations/ecma-objects-general.c @@ -374,11 +374,11 @@ ecma_op_general_object_define_own_property (ecma_object_t *object_p, /**< the ob || current_property_type == ECMA_PROPERTY_TYPE_VIRTUAL); /* 7. a., b. */ - bool is_enumberable = (property_desc_p->flags & ECMA_PROP_IS_ENUMERABLE) != 0; + bool is_enumerable = (property_desc_p->flags & ECMA_PROP_IS_ENUMERABLE) != 0; if (!is_current_configurable && ((property_desc_p->flags & ECMA_PROP_IS_CONFIGURABLE) || ((property_desc_p->flags & ECMA_PROP_IS_ENUMERABLE_DEFINED) - && (is_enumberable != ecma_is_property_enumerable (current_prop))))) + && (is_enumerable != ecma_is_property_enumerable (current_prop))))) { if (current_property_type == ECMA_PROPERTY_TYPE_VIRTUAL) {