From 59649fc2227d28bc4d2b5e180d23e45a84df5163 Mon Sep 17 00:00:00 2001 From: "maciej m." Date: Tue, 26 Nov 2024 11:01:34 +0100 Subject: [PATCH] fix building without BIGINT (#5047) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix building without BIGINT Co-authored-by: Maciej MusiaƂ JerryScript-DCO-1.0-Signed-off-by: aksdfauytv rdkifk@jadamspam.pl --- 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 becec42a1..40b42bb6c 100644 --- a/jerry-core/ecma/operations/ecma-typedarray-object.c +++ b/jerry-core/ecma/operations/ecma-typedarray-object.c @@ -668,6 +668,7 @@ ecma_set_typedarray_element (ecma_typedarray_info_t *info_p, /**< typedarray inf uint32_t index) /**< element index */ { ecma_value_t to_num; +#if JERRY_BUILTIN_BIGINT if (ECMA_TYPEDARRAY_IS_BIGINT_TYPE (info_p->id)) { to_num = ecma_bigint_to_bigint (value, false); @@ -678,6 +679,7 @@ ecma_set_typedarray_element (ecma_typedarray_info_t *info_p, /**< typedarray inf } } else +#endif /* JERRY_BUILTIN_BIGINT */ { ecma_number_t result_num; to_num = ecma_op_to_numeric (value, &result_num, ECMA_TO_NUMERIC_NO_OPTS);