From 726af0e37432d71eff452342a0d79b367828a34c Mon Sep 17 00:00:00 2001 From: "Simon Y. Blackwell" Date: Thu, 26 Dec 2024 18:37:41 -0800 Subject: [PATCH] Update stringify.js See https://github.com/sidorares/json-bigint/issues/95. Commented out switch on type: null because it can never be true and may cause lint failures. --- lib/stringify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stringify.js b/lib/stringify.js index 3bd5269..f6dce93 100644 --- a/lib/stringify.js +++ b/lib/stringify.js @@ -248,7 +248,7 @@ var JSON = module.exports; return isFinite(value) ? String(value) : 'null'; case 'boolean': - case 'null': +// case 'null': un-necessary because null is of type object and checked below, lints may fail with this in place case 'bigint': // If the value is a boolean or null, convert it to a string. Note: