Skip to content
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

lib/child_process: convert to using internal/errors #15090

Closed
wants to merge 2 commits into from
Closed

lib/child_process: convert to using internal/errors #15090

wants to merge 2 commits into from

Conversation

ramimoshe
Copy link
Contributor

covert lib/child_process.js over to using lib/internal/errors.js

ref: #11273

@nodejs-github-bot nodejs-github-bot added child_process Issues and PRs related to the child_process subsystem. errors Issues and PRs related to JavaScript errors originated in Node.js core. labels Aug 30, 2017
@@ -390,47 +391,47 @@ function normalizeSpawnArguments(file, args, options) {
if (options === undefined)
options = {};
else if (options === null || typeof options !== 'object')
throw new TypeError('"options" argument must be an object');
throw new errors.TypeError('ERR_OPTS_NOT_OBJECT');
Copy link
Member

Choose a reason for hiding this comment

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

The existing ERR_INVALID_ARG_TYPE would be better here.

Copy link
Member

Choose a reason for hiding this comment

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

(and else where throughout here)

Copy link
Member

@jasnell jasnell left a comment

Choose a reason for hiding this comment

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

Thank you so much for doing this. I may be mistaken but I seem to recall another open PR that was looking at this file also. I'd recommend doing a quick search to make sure you're not accidentally duplicating effort. Either way, the work is deeply appreciated.

I left a couple of comments that should be addressed before this could proceed forward.

@targos
Copy link
Member

targos commented Aug 30, 2017

The other PR is here: #14998

@gonenduk
Copy link
Contributor

@targos - I believe the other PR #14998 is for the file under the internal folder.
This PR is for the one under lib.

@targos
Copy link
Member

targos commented Aug 30, 2017

They both change errors in lib/child_process.js

@BridgeAR BridgeAR added the blocked PRs that are blocked by other issues or PRs. label Sep 19, 2017
@jasnell jasnell added the semver-major PRs that contain breaking changes and should be released in the next major version. label Sep 25, 2017
@ramimoshe
Copy link
Contributor Author

so can i close this issue?

@BridgeAR
Copy link
Member

Closing as this is a duplicate of another PR that is about to land.

@BridgeAR BridgeAR closed this Sep 28, 2017
@BridgeAR
Copy link
Member

@ramimoshe thanks a lot for your work nevertheless! I am sorry that your PR could not land.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked PRs that are blocked by other issues or PRs. child_process Issues and PRs related to the child_process subsystem. errors Issues and PRs related to JavaScript errors originated in Node.js core. semver-major PRs that contain breaking changes and should be released in the next major version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants