test: replace more uses of global with globalThis

PR-URL: https://github.com/nodejs/node/pull/56712
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
James M Snell authored and Antoine du Hamel committed 2025-02-06 01:10:39 +01:00
1 parent eb97076199
commit b811dea85a
74 files changed
+246 -242

No files matched your search

@@ -23,7 +23,7 @@ const { Worker } = require('worker_threads');
});
w.on('message', common.mustCall(() => {
assert.strictEqual(local.toString(), 'Hello world!');
global.gc();
globalThis.gc();
w.terminate();
}));
w.postMessage({});