node/test/parallel/test-common-gc.js
James M Snell 97a3a8204c 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>
2025-01-25 07:23:11 +00:00

15 lines
253 B
JavaScript

'use strict';
// Flags: --expose-gc
const common = require('../common');
const { onGC } = require('../common/gc');
{
onGC({}, { ongc: common.mustCall() });
globalThis.gc();
}
{
onGC(process, { ongc: common.mustNotCall() });
globalThis.gc();
}