node/test/parallel/test-common-gc.js
tannal 0b6b2a4dc7
test: merge ongc and gcutil into gc.js
PR-URL: https://github.com/nodejs/node/pull/54355
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2024-08-29 08:49:52 +01:00

15 lines
245 B
JavaScript

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