forked from LeenkxTeam/Kmake
15 lines
253 B
JavaScript
15 lines
253 B
JavaScript
'use strict';
|
|
// Flags: --expose-gc
|
|
const common = require('../common');
|
|
const { onGC } = require('../common/gc');
|
|
|
|
{
|
|
onGC({}, { ongc: common.mustCall() });
|
|
globalThis.gc();
|
|
}
|
|
|
|
{
|
|
onGC(process, { ongc: common.mustNotCall() });
|
|
globalThis.gc();
|
|
}
|