mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
0b6b2a4dc7
PR-URL: https://github.com/nodejs/node/pull/54355 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
15 lines
245 B
JavaScript
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();
|
|
}
|