Skip to content

Commit 59649fc

Browse files
aksdfauytvMaciej Musiał
andauthored
fix building without BIGINT (#5047)
* fix building without BIGINT Co-authored-by: Maciej Musiał <[email protected]> JerryScript-DCO-1.0-Signed-off-by: aksdfauytv [email protected]
1 parent 7db6a9a commit 59649fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jerry-core/ecma/operations/ecma-typedarray-object.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,7 @@ ecma_set_typedarray_element (ecma_typedarray_info_t *info_p, /**< typedarray inf
668668
uint32_t index) /**< element index */
669669
{
670670
ecma_value_t to_num;
671+
#if JERRY_BUILTIN_BIGINT
671672
if (ECMA_TYPEDARRAY_IS_BIGINT_TYPE (info_p->id))
672673
{
673674
to_num = ecma_bigint_to_bigint (value, false);
@@ -678,6 +679,7 @@ ecma_set_typedarray_element (ecma_typedarray_info_t *info_p, /**< typedarray inf
678679
}
679680
}
680681
else
682+
#endif /* JERRY_BUILTIN_BIGINT */
681683
{
682684
ecma_number_t result_num;
683685
to_num = ecma_op_to_numeric (value, &result_num, ECMA_TO_NUMERIC_NO_OPTS);

0 commit comments

Comments
 (0)