diff options
author | Rich Trott <rtrott@gmail.com> | 2016-01-30 21:46:45 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-02-02 12:48:08 -0800 |
commit | 8d61787f177e3002b87227d71f0b9707c7bb73d6 (patch) | |
tree | 56ef211648c11f4585a76882e2413e9d85d8acbc /test/parallel/test-process-env.js | |
parent | 415625c2a50eb8067e89df0e87c24fb8228f34d4 (diff) | |
download | android-node-v8-8d61787f177e3002b87227d71f0b9707c7bb73d6.tar.gz android-node-v8-8d61787f177e3002b87227d71f0b9707c7bb73d6.tar.bz2 android-node-v8-8d61787f177e3002b87227d71f0b9707c7bb73d6.zip |
test: fix variable redeclarations
I'm a fan of small changesets, but even I'm getting a little annoyed at
me for opening all these PRs weeding out variable redeclarations. So I'm
bundling a bunch of small changes here.
PR-URL: https://github.com/nodejs/node/pull/4992
Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-process-env.js')
-rw-r--r-- | test/parallel/test-process-env.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-process-env.js b/test/parallel/test-process-env.js index 932bae3f8f..b5e62324ac 100644 --- a/test/parallel/test-process-env.js +++ b/test/parallel/test-process-env.js @@ -31,12 +31,12 @@ if (process.argv[2] == 'you-are-the-child') { assert.equal(42, process.env.NODE_PROCESS_ENV); assert.equal('asdf', process.env.hasOwnProperty); var hasOwnProperty = Object.prototype.hasOwnProperty; - var has = hasOwnProperty.call(process.env, 'hasOwnProperty'); + const has = hasOwnProperty.call(process.env, 'hasOwnProperty'); assert.equal(true, has); process.exit(0); } else { assert.equal(Object.prototype.hasOwnProperty, process.env.hasOwnProperty); - var has = process.env.hasOwnProperty('hasOwnProperty'); + const has = process.env.hasOwnProperty('hasOwnProperty'); assert.equal(false, has); process.env.hasOwnProperty = 'asdf'; |