Skip to content

Commit

Permalink
sys: Mark as deprecated
Browse files Browse the repository at this point in the history
PR-URL: #317
Reviewed-By: Rod Vagg <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>

discussed at TC meeting, deprecate, don't remove
  • Loading branch information
geek authored and rvagg committed Jan 13, 2015
1 parent 0bf1d12 commit dc42e1f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/sys.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
'use strict';

var util = require('util');

// the sys module was renamed to 'util'.
// this shim remains to keep old programs working.
module.exports = require('util');
// sys is deprecated and shouldn't be used

var setExports = util.deprecate(function() {
module.exports = util;
}, 'sys is deprecated. Use util instead.');

setExports();

0 comments on commit dc42e1f

Please sign in to comment.