FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

url: replace var with let in lib/url.js by xefimx · Pull Request #30281 · nodejs/node · GitHub

/ node Public

url: replace var with let in lib/url.js - #30281

Closed
xefimx wants to merge 1 commit into
nodejs:masterfrom
xefimx:url-var-fix
Closed

url: replace var with let in lib/url.js#30281
xefimx wants to merge 1 commit into
nodejs:masterfrom
xefimx:url-var-fix

Conversation

xefimx commented Nov 6, 2019

Copy link
Copy Markdown
Contributor

url: replace var with let and const in lib/url.js

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

nodejs-github-bot added the url Issues and PRs related to the legacy built-in url module. label Nov 6, 2019
ChALkeR added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Nov 6, 2019
Comment thread lib/url.js
let end = -1;
let rest = '';
let lastPos = 0;
let i = 0;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

nit: move i = 0 inside the loop on line 166

Also, add let in a for loop on line 298 and 414?

for (let i = 0; i < rest.length; ++i) {

Comment thread lib/url.js
var hostEnd = -1;
var atSign = -1;
var nonHost = -1;
let hostEnd = -1;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

nit: the variable hostEnd can move inside the loop

Copy link
Copy Markdown
Member

@trivikr - are your suggestions a blocker from landing? plmk.

Copy link
Copy Markdown
Collaborator

trivikr commented Nov 12, 2019

Copy link
Copy Markdown
Member

@trivikr - are your suggestions a blocker from landing? plmk.

@gireeshpunathil Nope, they're not a blocker.
I've given approval and prefixed nit to my suggestions.

It's optional for @xefimx to follow-up if they want.

Trott pushed a commit that referenced this pull request Nov 17, 2019
PR-URL: #30281
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>

Trott commented Nov 17, 2019

Copy link
Copy Markdown
Member

Landed in 87cef76

Trott closed this Nov 17, 2019

Trott commented Nov 17, 2019

Copy link
Copy Markdown
Member

Thanks for the contribution! 🎉

trivikr mentioned this pull request Nov 17, 2019
2 tasks
MylesBorins pushed a commit that referenced this pull request Nov 17, 2019
PR-URL: #30281
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
BridgeAR mentioned this pull request Nov 19, 2019
targos pushed a commit that referenced this pull request Dec 1, 2019
PR-URL: #30281
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
trivikr added a commit to trivikr/node that referenced this pull request Dec 7, 2019
BethGriggs mentioned this pull request Dec 9, 2019
bmeck pushed a commit that referenced this pull request Dec 11, 2019
Refs: #30281 (comment)

PR-URL: #30509
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
MylesBorins pushed a commit that referenced this pull request Dec 13, 2019
Refs: #30281 (comment)

PR-URL: #30509
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
MylesBorins pushed a commit that referenced this pull request Dec 17, 2019
PR-URL: #30281
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
BethGriggs mentioned this pull request Dec 23, 2019
targos pushed a commit that referenced this pull request Jan 14, 2020
Refs: #30281 (comment)

PR-URL: #30509
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
BethGriggs pushed a commit that referenced this pull request Feb 6, 2020
Refs: #30281 (comment)

PR-URL: #30509
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. url Issues and PRs related to the legacy built-in url module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL