mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 13:40:37 +00:00

PR-URL: https://github.com/nodejs/node/pull/56712 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
15 lines
253 B
JavaScript
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();
|
|
}
|