-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
child_process: use internal/errors #14009
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', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is 'Object'
capitalized here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was like that before, should I change it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I noticed but few lines above (260) it is in lowercase. I'd make them consistent.
@nodejs/ctc due to semverity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as semver-major
Landed in fe730d3. CI on master: https://ci.nodejs.org/job/node-test-commit-linuxone/7044/ |
Refs: #11273
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
child_process