First time contribution from NodeConf EU#16821
First time contribution from NodeConf EU#16821paulashfield wants to merge 3 commits intonodejs:masterfrom
Conversation
apapirovski
left a comment
There was a problem hiding this comment.
Thanks @paulashfield — just some minor feedback below.
There was a problem hiding this comment.
This would be a bit nicer as just, say:
const val1 = 41.92;
const val2 = 0.08;There was a problem hiding this comment.
This could be then rewritten as:
const actual = addon.testNapiRun(`(${val1} + ${val2});`);There was a problem hiding this comment.
This could then be const expected = val1 + val2;
There was a problem hiding this comment.
Here you could remove the third argument (the error message) as the default message communicates the same thing.
|
@paulashfield - on your system - implication of which is that this commit will not be associated with your profile. Can you set them up and push once again? |
|
@paulashfield See also the last note in this chapter: https://github.com/nodejs/node/blob/master/CONTRIBUTING.md#setting-up-your-local-environment |
There was a problem hiding this comment.
A nit: the last line seems lacking the last line break.
|
Many thanks all for feedback - really helped. I have amended and recommitted, hope that looks better. |
|
Hi @paulashfield! Welcome and thanks for the PR! If you run |
Trott
left a comment
There was a problem hiding this comment.
Needs spacing flagged by linter fixed...
Trott
left a comment
There was a problem hiding this comment.
Because the lint issue was just about adding two spaces, I went ahead and did it myself. Hope that's OK.
PR-URL: nodejs#16821 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
|
Landed in 3ee524b. |
PR-URL: #16821 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
|
@paulashfield just an FYI, this commit isn't associated with your Github account. You need to go to https://github.com/settings/emails and add That's why there's a |
PR-URL: #16821 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
PR-URL: nodejs#16821 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>

Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)