Skip to content

Conversation

@lazlojuly
Copy link
Contributor

@lazlojulylazlojuly commented Aug 16, 2016

Checklist
  • documentation is changed or added
  • commit message follows commit guidelines
Description of change

Const is block-scoped.
Stream HTTP server example code is broken since const was introduced inside a try block.

@nodejs-github-botnodejs-github-bot added doc Issues and PRs related to the documentations. stream Issues and PRs related to the stream subsystem. labels Aug 16, 2016
Copy link
Member

Choose a reason for hiding this comment

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

nit: our preferred code style in core is to require parens around arguments in arrow functions.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

removed (n)it

@jasnell
Copy link
Member

LGTM with a nit

@lazlojulylazlojulyforce-pushed the doc-stream-http-example-fix branch from 6b07664 to 061880fCompareAugust 16, 2016 17:34
@MylesBorins
Copy link
Contributor

LGTM

jasnell pushed a commit that referenced this pull request Aug 18, 2016
Const is block scoped. PR-URL: #8124 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Myles Borins <[email protected]>
@jasnell
Copy link
Member

Landed in 66d697c! thank you @lazlojuly !

@jasnelljasnell closed this Aug 18, 2016
evanlucas pushed a commit that referenced this pull request Aug 24, 2016
Const is block scoped. PR-URL: #8124 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Myles Borins <[email protected]>
MylesBorins pushed a commit that referenced this pull request Sep 30, 2016
Const is block scoped. PR-URL: #8124 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Myles Borins <[email protected]>
MylesBorins pushed a commit that referenced this pull request Oct 10, 2016
Const is block scoped. PR-URL: #8124 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Myles Borins <[email protected]>
rvagg pushed a commit that referenced this pull request Oct 18, 2016
Const is block scoped. PR-URL: #8124 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Myles Borins <[email protected]>
MylesBorins pushed a commit that referenced this pull request Oct 26, 2016
Const is block scoped. PR-URL: #8124 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Myles Borins <[email protected]>
@MylesBorinsMylesBorins mentioned this pull request Oct 26, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docIssues and PRs related to the documentations.streamIssues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@lazlojuly@jasnell@MylesBorins@nodejs-github-bot