From 858c3e68a136a8d38429db5a2c7e4c2e7b315962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Lang=C3=B3?= Date: Tue, 22 Jan 2019 09:19:34 +0100 Subject: [PATCH] Fixed unreachable jump statements. (#2722) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com --- jerry-core/ecma/base/ecma-helpers-value.c | 4 ++-- jerry-core/ecma/base/ecma-property-hashmap.c | 3 ++- jerry-core/ecma/operations/ecma-objects.c | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/jerry-core/ecma/base/ecma-helpers-value.c b/jerry-core/ecma/base/ecma-helpers-value.c index e345c00a0..4ad11474e 100644 --- a/jerry-core/ecma/base/ecma-helpers-value.c +++ b/jerry-core/ecma/base/ecma-helpers-value.c @@ -336,9 +336,9 @@ ecma_is_value_prop_name (ecma_value_t value) /**< ecma value */ { #ifndef CONFIG_DISABLE_ES2015_SYMBOL_BUILTIN return ecma_is_value_string (value) || ecma_is_value_symbol (value); -#endif /* !CONFIG_DISABLE_ES2015_SYMBOL_BUILTIN */ - +#else /* CONFIG_DISABLE_ES2015_SYMBOL_BUILTIN */ return ecma_is_value_string (value); +#endif /* !CONFIG_DISABLE_ES2015_SYMBOL_BUILTIN */ } /* ecma_is_value_prop_name */ /** diff --git a/jerry-core/ecma/base/ecma-property-hashmap.c b/jerry-core/ecma/base/ecma-property-hashmap.c index 5da1d10a9..45029969f 100644 --- a/jerry-core/ecma/base/ecma-property-hashmap.c +++ b/jerry-core/ecma/base/ecma-property-hashmap.c @@ -415,8 +415,9 @@ ecma_property_hashmap_delete (ecma_object_t *object_p, /**< object */ JERRY_UNUSED (object_p); JERRY_UNUSED (name_cp); JERRY_UNUSED (property_p); -#endif /* !CONFIG_ECMA_PROPERTY_HASHMAP_DISABLE */ + return ECMA_PROPERTY_HASHMAP_DELETE_HAS_HASHMAP; +#endif /* !CONFIG_ECMA_PROPERTY_HASHMAP_DISABLE */ } /* ecma_property_hashmap_delete */ #ifndef CONFIG_ECMA_PROPERTY_HASHMAP_DISABLE diff --git a/jerry-core/ecma/operations/ecma-objects.c b/jerry-core/ecma/operations/ecma-objects.c index c5cb351e5..b63bdef29 100644 --- a/jerry-core/ecma/operations/ecma-objects.c +++ b/jerry-core/ecma/operations/ecma-objects.c @@ -1211,8 +1211,9 @@ ecma_op_object_define_own_property (ecma_object_t *obj_p, /**< the object */ property_name_p, property_desc_p, is_throw); -#endif /* !CONFIG_DISABLE_ES2015_TYPEDARRAY_BUILTIN */ +#else /* CONFIG_DISABLE_ES2015_TYPEDARRAY_BUILTIN */ break; +#endif /* !CONFIG_DISABLE_ES2015_TYPEDARRAY_BUILTIN */ } } } /* ecma_op_object_define_own_property */