mirror of
https://github.com/nodejs/node.git
synced 2025-05-08 16:55:46 +00:00

PR-URL: https://github.com/iojs/io.js/pull/317 Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> discussed at TC meeting, deprecate, don't remove
14 lines
309 B
JavaScript
14 lines
309 B
JavaScript
'use strict';
|
|
|
|
var util = require('util');
|
|
|
|
// the sys module was renamed to 'util'.
|
|
// this shim remains to keep old programs working.
|
|
// sys is deprecated and shouldn't be used
|
|
|
|
var setExports = util.deprecate(function() {
|
|
module.exports = util;
|
|
}, 'sys is deprecated. Use util instead.');
|
|
|
|
setExports();
|