From 8a0a86e3c7346c139b74d18e40faafb5dfcf5e3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csaba=20Osztrogon=C3=A1c?= Date: Wed, 21 Oct 2020 10:04:59 +0200 Subject: [PATCH] Fix the build without BigInt support (#4304) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác csaba.osztrogonac@h-lab.eu --- jerry-core/ecma/operations/ecma-typedarray-object.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jerry-core/ecma/operations/ecma-typedarray-object.c b/jerry-core/ecma/operations/ecma-typedarray-object.c index 49f5f6a6a..08ff54557 100644 --- a/jerry-core/ecma/operations/ecma-typedarray-object.c +++ b/jerry-core/ecma/operations/ecma-typedarray-object.c @@ -892,11 +892,13 @@ ecma_typedarray_create_object_with_typedarray (ecma_object_t *typedarray_p, /**< } else { +#if ENABLED (JERRY_BUILTIN_BIGINT) if ((ECMA_TYPEDARRAY_IS_BIGINT_TYPE (src_id) ^ ECMA_TYPEDARRAY_IS_BIGINT_TYPE (typedarray_id)) == 1) { ecma_deref_object (new_typedarray_p); return ecma_raise_type_error (ECMA_ERR_MSG ("Incompatible typedArray types.")); } +#endif /* ENABLED (JERRY_BUILTIN_BIGINT) */ uint32_t src_element_size = 1u << ecma_typedarray_get_element_size_shift (typedarray_p); uint32_t dst_element_size = 1u << element_size_shift;