mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
804e7aa9ab
This commit replaces a number of var statements throughout the lib code with const statements. PR-URL: https://github.com/iojs/io.js/pull/541 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
14 lines
313 B
JavaScript
14 lines
313 B
JavaScript
'use strict';
|
|
|
|
const 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
|
|
|
|
const setExports = util.deprecate(function() {
|
|
module.exports = util;
|
|
}, 'sys is deprecated. Use util instead.');
|
|
|
|
setExports();
|