url: change scoping of variables with let#4867
url: change scoping of variables with let#4867kthelgason wants to merge 1 commit intonodejs:masterfrom
Conversation
Also changes some `var`s to `const` as they never change.
|
I'm confused as to what made you change IE: Line 674, |
|
I tried to handle all cases where a variable was redeclared. The |
|
LGTM if CI is OK |
|
@tflanagan If it's useful, here's the eslint report that @kthelgason was probably looking at to decide which instances in the file to change. https://gist.github.com/Trott/7dc16adf550b6a8d06cc |
|
@Trott @tflanagan yes that is indeed the report I was looking at. |
|
@kthelgason It looks like a problem with the CI host itself and not anything in your code. Will run CI again so we can hopefully see green on Ubuntu 15.04 and declare victory. CI again: https://ci.nodejs.org/job/node-test-pull-request/1380/ |
|
CI is green. LGTM |
|
LGTM |
Also changes some `var`s to `const` as they never change. PR-URL: nodejs#4867 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
Landed in fcae05e |
Also changes some `var`s to `const` as they never change. PR-URL: #4867 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Also changes some `var`s to `const` as they never change. PR-URL: #4867 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Also changes some `var`s to `const` as they never change. PR-URL: #4867 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Also changes some `var`s to `const` as they never change. PR-URL: #4867 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Also changes some `var`s to `const` as they never change. PR-URL: #4867 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Also changes some `var`s to `const` as they never change. PR-URL: nodejs#4867 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This PR addresses variable redeclarations in
lib/url.jsby changing hoistedvars tolet.Also changes some
vars toconstas recommended by the linter.@Trott points out in #4853 that the linter reports a lot of redeclarations. I believe addressing this incrementally is easier and less risky, hence this PR only fixes these issues in this one file.