2018-07-13 18:32:17 +02:00
|
|
|
'use strict';
|
|
|
|
// Flags: --expose-gc
|
|
|
|
const common = require('../common');
|
2024-08-13 18:28:21 +08:00
|
|
|
const { onGC } = require('../common/gc');
|
2018-07-13 18:32:17 +02:00
|
|
|
|
|
|
|
{
|
2018-08-21 13:38:59 -07:00
|
|
|
onGC({}, { ongc: common.mustCall() });
|
2025-01-22 15:30:30 -08:00
|
|
|
globalThis.gc();
|
2018-07-13 18:32:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
{
|
2018-08-21 13:38:59 -07:00
|
|
|
onGC(process, { ongc: common.mustNotCall() });
|
2025-01-22 15:30:30 -08:00
|
|
|
globalThis.gc();
|
2018-07-13 18:32:17 +02:00
|
|
|
}
|