From d67ee9a08be200dc1ce9a416c9cda82730e24b68 Mon Sep 17 00:00:00 2001 From: Aapo Alasuutari Date: Thu, 30 May 2024 05:30:11 +0300 Subject: BREAKING(ffi/unstable): use BigInt representation in turbocall (#23983) Built ontop of #23981, this sets FFI turbocalls (Fast Call API) to use the BigInt representation. --- tests/unit/ffi_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/unit') diff --git a/tests/unit/ffi_test.ts b/tests/unit/ffi_test.ts index 2b56a8db1..70a914c0a 100644 --- a/tests/unit/ffi_test.ts +++ b/tests/unit/ffi_test.ts @@ -92,11 +92,11 @@ Deno.test({ permissions: { ffi: true } }, function pointerOf() { const uint8AddressOffset = Deno.UnsafePointer.value( Deno.UnsafePointer.of(new Uint8Array(buffer, 100)), ); - assertEquals(Number(baseAddress) + 100, uint8AddressOffset); + assertEquals(baseAddress + 100n, uint8AddressOffset); const float64AddressOffset = Deno.UnsafePointer.value( Deno.UnsafePointer.of(new Float64Array(buffer, 80)), ); - assertEquals(Number(baseAddress) + 80, float64AddressOffset); + assertEquals(baseAddress + 80n, float64AddressOffset); }); Deno.test({ permissions: { ffi: true } }, function callWithError() { -- cgit v1.2.3