summaryrefslogtreecommitdiff
path: root/test/parallel/test-common-gc.js
blob: 96dc7e2e7b601deeff6bec4c1f53bad28a707488 (plain)
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();
}