Refactor time helper and remove custom error helper. (#4803)

Co-authored-by: ernestognw <ernestognw@gmail.com>
This commit is contained in:
Hadrien Croubois
2023-12-22 20:50:25 +01:00
committed by GitHub
parent be0572a8dc
commit 015ef69287
32 changed files with 158 additions and 209 deletions

View File

@ -1,12 +1,4 @@
// TODO: deprecate the old version in favor of this one
const bigint = {
module.exports = {
MAX_UINT48: 2n ** 48n - 1n,
MAX_UINT64: 2n ** 64n - 1n,
};
// TODO: remove toString() when bigint are supported
module.exports = {
MAX_UINT48: bigint.MAX_UINT48.toString(),
MAX_UINT64: bigint.MAX_UINT64.toString(),
bigint,
};