Skip to content

Conversation

@radelmann
Copy link
Contributor

@radelmann radelmann commented Oct 6, 2017

updated test/async-hooks/init-hooks.js

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

test, async_hooks

@nodejs-github-bot nodejs-github-bot added async_hooks Issues and PRs related to the async hooks subsystem. test Issues and PRs related to the tests. labels Oct 6, 2017
@Trott Trott added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Oct 6, 2017
@radelmann radelmann force-pushed the init-hooks.js branch 2 times, most recently from 8bf9e77 to 81e5a13 Compare October 7, 2017 16:17
Copy link
Member

Choose a reason for hiding this comment

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

Please prevent use multiline template strings. This adds lots and lots of whitespace infront of line 2 + 3. Instead, keep the + for each new line and use \n if necessary..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@BridgeAR Thanks for the feedback. Removed the multiline template strings and went back to using + and \n.

updated test/async-hooks/init-hooks.js
@gibfahn
Copy link
Member

gibfahn commented Oct 9, 2017

jasnell pushed a commit that referenced this pull request Oct 12, 2017
updated test/async-hooks/init-hooks.js

PR-URL: #15968
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@jasnell
Copy link
Member

jasnell commented Oct 12, 2017

Landed in 3ea3c08

@jasnell jasnell closed this Oct 12, 2017
}

const violations = [];
let tempActivityString;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason this is scoped outside the loop?

if (a.before.length < a.after.length) {
v('Activity called "after" without calling "before"\n' +
activityString(a) +
`${tempActivityString}` +
Copy link
Contributor

Choose a reason for hiding this comment

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

Equivalent to tempActivityString?

addaleax pushed a commit to ayojs/ayo that referenced this pull request Oct 15, 2017
updated test/async-hooks/init-hooks.js

PR-URL: nodejs/node#15968
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: James M Snell <[email protected]>
targos pushed a commit that referenced this pull request Oct 18, 2017
updated test/async-hooks/init-hooks.js

PR-URL: #15968
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: James M Snell <[email protected]>
targos pushed a commit that referenced this pull request Oct 18, 2017
updated test/async-hooks/init-hooks.js

PR-URL: #15968
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

async_hooks Issues and PRs related to the async hooks subsystem. code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants