Skip to content

Commit

Permalink
Deprecate sys module in favor of util & console
Browse files Browse the repository at this point in the history
  • Loading branch information
kvz committed Mar 19, 2015
1 parent c44af04 commit 9e56eea
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/common.js
@@ -1,6 +1,8 @@
var path = require('path')
, sys = require('sys');
, util = require('util');

global.puts = sys.puts;
global.p = function() {sys.error(sys.inspect.apply(null, arguments))};;
global.assert = require('assert');
global.puts = console.log;
global.p = function() {
console.error(util.inspect.apply(null, arguments));
};
global.assert = require('assert');

0 comments on commit 9e56eea

Please sign in to comment.