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:
cjihrig 2015-01-21 11:36:59 -05:00
parent 803883bb1a
commit 804e7aa9ab
48 changed files with 392 additions and 405 deletions

View file

@ -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.');