test: scope redeclared variable
authorRich Trott <rtrott@gmail.com>
Thu, 14 Jan 2016 00:14:28 +0000 (16:14 -0800)
committerMyles Borins <mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000 (14:01 -0800)
commit5dd05be469fecd3174bb0bd4e010d0a1f10e384e
tree0b8678cd58a9fc97cf7a26e2f14e53043abfc2cb
parent67be41ae315a6d24fdb8fd649cd1e2bcf5cccb22
test: scope redeclared variable

`test-assert.js` redeclares a variable with `var`. This change converts
it to a `const` declaration and wraps it in a standalone block to scope
it to just the test that uses it.

PR-URL: https://github.com/nodejs/node/pull/4854
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: targos - Michaƫl Zasso <mic.besace@gmail.com>
test/parallel/test-assert.js