mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
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({});
|
||||
|
||||
Reference in new issue
Block a user