diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-04-25 22:43:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-25 20:43:39 +0000 |
commit | 97820fe8abb15baabaf6b6eed632514867c7d97d (patch) | |
tree | d6605dcc270efccd28b45fd02e2e178123bde9dd | |
parent | 531754c35497568aa2f19179344eb9e205c9a4b3 (diff) |
refactor(ext/kv): don't use bigint literals (#18841)
This causes `DCHECK` fail in V8 when pointer compression
is disabled.
-rw-r--r-- | ext/kv/01_db.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/kv/01_db.ts b/ext/kv/01_db.ts index 16099c225..1a7b27dac 100644 --- a/ext/kv/01_db.ts +++ b/ext/kv/01_db.ts @@ -278,8 +278,8 @@ class AtomicOperation { } } -const MIN_U64 = 0n; -const MAX_U64 = 0xffffffffffffffffn; +const MIN_U64 = BigInt("0"); +const MAX_U64 = BigInt("0xffffffffffffffff"); class KvU64 { readonly value: bigint; |