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