diff options
author | Aapo Alasuutari <aapo.alasuutari@gmail.com> | 2024-05-30 05:30:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-30 08:00:11 +0530 |
commit | d67ee9a08be200dc1ce9a416c9cda82730e24b68 (patch) | |
tree | 40cfd61cfbf89e6a1347d40caaa9ab3cdd3b7e25 /tests/unit/ffi_test.ts | |
parent | a379009bfdddc56d6400740ad7be86f8930952ab (diff) |
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.
Diffstat (limited to 'tests/unit/ffi_test.ts')
-rw-r--r-- | tests/unit/ffi_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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() { |