From bcc6b66727d70933e99223e4c8dc7315364fd011 Mon Sep 17 00:00:00 2001 From: Koen <41021050+vrugtehagel@users.noreply.github.com> Date: Mon, 28 Oct 2024 13:54:59 +0100 Subject: [PATCH] Update reference to global to be globalThis --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 0ea550b..be9740a 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,7 +1,7 @@ 'use strict'; // Stringifier -var toString = global.JSON && typeof JSON.stringify === 'function' ? JSON.stringify : String; +var toString = globalThis.JSON && typeof JSON.stringify === 'function' ? JSON.stringify : String; /** * Format the given `str`.