1 2 3 4 5 6 7 8 9 10 11 12 13 14
'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(); }