From 5e1f654c0a49d0986ed64f2d495ec82af1ff3f63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Musia=C5=82?= Date: Thu, 9 Mar 2023 08:59:28 +0100 Subject: [PATCH 1/3] fix building without BIGINT --- 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 c4c4f41052..1670a6a67c 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); From 46c0e09d3277c3746a026c085aa5930df1eee876 Mon Sep 17 00:00:00 2001 From: aksdfauytv Date: Thu, 9 Mar 2023 14:06:47 +0100 Subject: [PATCH 2/3] fix building without BIGINT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit JerryScript-DCO-1.0-Signed-off-by: Maciej MusiaƂ xt1@o2.pl --- jerry-core/ecma/operations/ecma-typedarray-object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jerry-core/ecma/operations/ecma-typedarray-object.c b/jerry-core/ecma/operations/ecma-typedarray-object.c index 1670a6a67c..494fd461bd 100644 --- a/jerry-core/ecma/operations/ecma-typedarray-object.c +++ b/jerry-core/ecma/operations/ecma-typedarray-object.c @@ -679,7 +679,7 @@ ecma_set_typedarray_element (ecma_typedarray_info_t *info_p, /**< typedarray inf } } else -#endif /* JERRY_BUILTIN_BIGINT */ +#endif /* JERRY_BUILTIN_BIGINT */ { ecma_number_t result_num; to_num = ecma_op_to_numeric (value, &result_num, ECMA_TO_NUMERIC_NO_OPTS); From cd0557dedec7c4066834aec7bc214a83fe6db03c Mon Sep 17 00:00:00 2001 From: aksdfauytv Date: Thu, 9 Mar 2023 14:45:49 +0100 Subject: [PATCH 3/3] fix building without BIGINT JerryScript-DCO-1.0-Signed-off-by: aksdfauytv rdkifk@jadamspam.pl --- jerry-core/ecma/operations/ecma-typedarray-object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jerry-core/ecma/operations/ecma-typedarray-object.c b/jerry-core/ecma/operations/ecma-typedarray-object.c index 494fd461bd..1670a6a67c 100644 --- a/jerry-core/ecma/operations/ecma-typedarray-object.c +++ b/jerry-core/ecma/operations/ecma-typedarray-object.c @@ -679,7 +679,7 @@ ecma_set_typedarray_element (ecma_typedarray_info_t *info_p, /**< typedarray inf } } else -#endif /* JERRY_BUILTIN_BIGINT */ +#endif /* JERRY_BUILTIN_BIGINT */ { ecma_number_t result_num; to_num = ecma_op_to_numeric (value, &result_num, ECMA_TO_NUMERIC_NO_OPTS);