Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
child_process: use internal/errors #14009
Closed
Conversation
lib/internal/child_process.js
Outdated
| @@ -545,7 +551,8 @@ function setupChannel(target, channel) { | |||
| options = undefined; | |||
| } else if (options !== undefined && | |||
| (options === null || typeof options !== 'object')) { | |||
| throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'options', 'Object'); | |||
| throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'options', 'Object', | |||
lpinca
Jul 1, 2017
Member
Why is 'Object' capitalized here?
Why is 'Object' capitalized here?
tniessen
Jul 1, 2017
Author
Member
It was like that before, should I change it?
It was like that before, should I change it?
lpinca
Jul 1, 2017
Member
Yeah I noticed but few lines above (260) it is in lowercase. I'd make them consistent.
Yeah I noticed but few lines above (260) it is in lowercase. I'd make them consistent.
|
@nodejs/ctc due to semverity |
|
LGTM as semver-major |
|
Landed in fe730d3. CI on master: https://ci.nodejs.org/job/node-test-commit-linuxone/7044/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Refs: #11273
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
child_process