Uh oh!
There was an error while loading. Please reload this page.
url: change scoping of variables with let - #4867
Conversation
Also changes some `var`s to `const` as they never change.
tflanagan
commented
Jan 25, 2016
I'm confused as to what made you change IE: Line 674, |
kthelgason
commented
Jan 25, 2016
I tried to handle all cases where a variable was redeclared. The |
Trott
commented
Jan 25, 2016
Trott
commented
Jan 25, 2016
LGTM if CI is OK |
Trott
commented
Jan 25, 2016
@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 |
kthelgason
commented
Jan 26, 2016
@Trott@tflanagan yes that is indeed the report I was looking at. |
Trott
commented
Jan 26, 2016
@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/ |
Trott
commented
Jan 26, 2016
CI is green. LGTM |
jasnell
commented
Jan 27, 2016
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>
Trott
commented
Jan 27, 2016
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.