mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
c78091d689
common.js contains code that detects leaked variables. In preparation for an eslint rule that will enforce loading common.js in test files, load it everywhere it can be loaded and use an `eslint-disable` comment for files that intentionally leak. PR-URL: https://github.com/nodejs/node/pull/3157 Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
15 lines
257 B
JavaScript
15 lines
257 B
JavaScript
'use strict';
|
|
|
|
require('../../common');
|
|
|
|
const binding = require('./build/Release/binding');
|
|
|
|
// Create an AsyncWrap object.
|
|
const timer = setTimeout(function() {}, 1);
|
|
timer.unref();
|
|
|
|
// Stress-test the heap profiler.
|
|
binding.test();
|
|
|
|
clearTimeout(timer);
|