diff --git a/test/common.js b/test/common.js index 750165ea8cc6c0..7fbb50b44906a1 100644 --- a/test/common.js +++ b/test/common.js @@ -5,6 +5,8 @@ var fs = require('fs'); var assert = require('assert'); var os = require('os'); var child_process = require('child_process'); +var util = require('util'); + exports.testDir = path.dirname(__filename); exports.fixturesDir = path.join(exports.testDir, 'fixtures'); @@ -171,10 +173,6 @@ exports.hasIPv6 = Object.keys(ifaces).some(function(name) { }); }); -var util = require('util'); -for (var i in util) exports[i] = util[i]; -//for (var i in exports) global[i] = exports[i]; - function protoCtrChain(o) { var result = []; for (; o; o = o.__proto__) { result.push(o.constructor); }