From 358fb0b5da9d4c58ec29c65f3902687994f2cc0c Mon Sep 17 00:00:00 2001 From: Kevin Locke Date: Sat, 2 Nov 2024 13:32:57 -0600 Subject: [PATCH] style: automatic fixes for new ESLint rules Signed-off-by: Kevin Locke --- benchmark/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmark/index.js b/benchmark/index.js index 7fc14ef..0f9694e 100755 --- a/benchmark/index.js +++ b/benchmark/index.js @@ -15,8 +15,8 @@ const readFileP = promisify(readFile); // https://github.com/import-js/eslint-plugin-import/issues/2844 // eslint-disable-next-line import/extensions,n/no-unpublished-require -global.jsonReplaceExponentials = require('..'); -global.toJsonNoExponential = require('./to-json-no-exponential.js'); +globalThis.jsonReplaceExponentials = require('..'); +globalThis.toJsonNoExponential = require('./to-json-no-exponential.js'); exports.createBenchmarkSuite = function createBenchmarkSuite() { @@ -85,8 +85,8 @@ function main(args, options, exit) { { encoding: 'utf8' }, ) .then((jsonStr) => { - global.jsonStr = jsonStr; - global.jsonValue = JSON.parse(jsonStr); + globalThis.jsonStr = jsonStr; + globalThis.jsonValue = JSON.parse(jsonStr); return this.runSuite(this.createBenchmarkSuite(), options); }) .then(