summaryrefslogtreecommitdiff
path: root/lib/os.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2015-01-21 11:36:59 -0500
committercjihrig <cjihrig@gmail.com>2015-01-21 16:21:31 -0500
commit804e7aa9ab0b34fa88709ef0980b960abca5e059 (patch)
tree4e09207abd54e30bd62459e43e2f9219619a7256 /lib/os.js
parent803883bb1a701da12c285fd735233eed7627eada (diff)
downloadnode-new-804e7aa9ab0b34fa88709ef0980b960abca5e059.tar.gz
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>
Diffstat (limited to 'lib/os.js')
-rw-r--r--lib/os.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/os.js b/lib/os.js
index 965a9b53d2..75a863e2f7 100644
--- a/lib/os.js
+++ b/lib/os.js
@@ -1,8 +1,8 @@
'use strict';
-var binding = process.binding('os');
-var util = require('util');
-var isWindows = process.platform === 'win32';
+const binding = process.binding('os');
+const util = require('util');
+const isWindows = process.platform === 'win32';
exports.hostname = binding.getHostname;
exports.loadavg = binding.getLoadAvg;