node/test/addons/null-buffer-neuter/test.js

12 lines
272 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(() => {
assert.strictEqual(binding.isAlive(), 0);
});