From 79d2daa0ccf672cca8c8000d24ab6b2e3d9f53f9 Mon Sep 17 00:00:00 2001 From: Chris Dickinson Date: Mon, 28 Sep 2020 10:05:51 -0700 Subject: [PATCH] Revert "fix: ensure MAX_SAFE_INTEGER exists" This reverts commit da118c9a223365929e30eb29e164838148c19a3d. --- encode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encode.js b/encode.js index 91886a6..f4ecb8d 100644 --- a/encode.js +++ b/encode.js @@ -6,7 +6,7 @@ var MSB = 0x80 , INT = Math.pow(2, 31) function encode(num, out, offset) { - if (Number.MAX_SAFE_INTEGER && num > Number.MAX_SAFE_INTEGER) { + if (num > Number.MAX_SAFE_INTEGER) { encode.bytes = 0 throw new RangeError('Could not encode varint') }