mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
15 lines
284 B
JavaScript
15 lines
284 B
JavaScript
|
'use strict';
|
||
|
// Flags: --expose-gc
|
||
|
|
||
|
process.env.NODE_TEST_KNOWN_GLOBALS = 0;
|
||
|
|
||
|
const common = require('../../common');
|
||
|
const binding = require(`./build/${common.buildType}/binding`);
|
||
|
|
||
|
global.it = new binding.MyObject();
|
||
|
|
||
|
global.cleanup = () => {
|
||
|
delete global.it;
|
||
|
global.gc();
|
||
|
};
|