move from sys. to util. for utility functions
This commit is contained in:
parent
e90f04253a
commit
6d5dc21c95
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ console.error = makeColorConsole(console.error, 'red')
|
||||||
function makeColorConsole (fct, color) {
|
function makeColorConsole (fct, color) {
|
||||||
return function () {
|
return function () {
|
||||||
for (var i in arguments) {
|
for (var i in arguments) {
|
||||||
if (arguments[i] instanceof Object) { arguments[i] = sys.inspect(arguments[i]) }
|
if (arguments[i] instanceof Object) { arguments[i] = util.inspect(arguments[i]) }
|
||||||
}
|
}
|
||||||
fct(Array.prototype.join.call(arguments, ' ')[color])
|
fct(Array.prototype.join.call(arguments, ' ')[color])
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue