mirror of
https://github.com/zebrajr/node.git
synced 2025-12-07 00:20:38 +01:00
PR-URL: https://github.com/nodejs/node/pull/60142 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
12 lines
289 B
JavaScript
12 lines
289 B
JavaScript
'use strict';
|
|
// Flags: --expose-gc
|
|
const common = require('../../common');
|
|
const assert = require('assert');
|
|
const binding = require(`./build/${common.buildType}/binding`);
|
|
|
|
binding.run();
|
|
global.gc();
|
|
setImmediate(common.mustCall(() => {
|
|
assert.strictEqual(binding.isAlive(), 0);
|
|
}));
|