nodejs-mozilla/test/parallel/test-common-gc.js

15 lines
243 B
JavaScript
Raw Normal View History

2022-07-18 11:52:00 +08:00
'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();
}