mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 23:43:09 +01:00
72c8a74b55
common.inspect() is just util.inspect(). common copies every property from util but this is the only one that gets used and it only gets used in three places. Well, four, but the fourth is removed in a pending PR. This commit removes it. Subsequently, the "copy util to common" part of `common` can be removed altogether. PR-URL: https://github.com/nodejs/node/pull/3257 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com>
14 lines
261 B
JavaScript
14 lines
261 B
JavaScript
'use strict';
|
|
var common = require('../common');
|
|
var assert = require('assert');
|
|
|
|
var fs = require('fs');
|
|
|
|
var files = [];
|
|
|
|
while (files.length < 256)
|
|
files.push(fs.openSync(__filename, 'r'));
|
|
|
|
var r = process.memoryUsage();
|
|
assert.equal(true, r['rss'] > 0);
|