mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
16 lines
283 B
JavaScript
16 lines
283 B
JavaScript
|
'use strict';
|
||
|
// Flags: --expose-gc
|
||
|
const common = require('../common');
|
||
|
|
||
|
{
|
||
|
const gcListener = { ongc: common.mustCall() };
|
||
|
common.onGC({}, gcListener);
|
||
|
global.gc();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
const gcListener = { ongc: common.mustNotCall() };
|
||
|
common.onGC(process, gcListener);
|
||
|
global.gc();
|
||
|
}
|