mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
lib: use const to define constants
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>
This commit is contained in:
parent
803883bb1a
commit
804e7aa9ab
48 changed files with 392 additions and 405 deletions
|
@ -1,12 +1,12 @@
|
|||
'use strict';
|
||||
|
||||
var util = require('util');
|
||||
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
|
||||
|
||||
var setExports = util.deprecate(function() {
|
||||
const setExports = util.deprecate(function() {
|
||||
module.exports = util;
|
||||
}, 'sys is deprecated. Use util instead.');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue