Skip to content

child_process: use internal/errors - #14009

Closed
tniessen wants to merge 2 commits into
nodejs:masterfrom
tniessen:child-proc
Closed

child_process: use internal/errors#14009
tniessen wants to merge 2 commits into
nodejs:masterfrom
tniessen:child-proc

Conversation

@tniessen

@tniessentniessen commented Jun 30, 2017

Copy link
Copy Markdown
Member

Refs: #11273

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)

child_process

@nodejs-github-botnodejs-github-bot added the child_process Issues and PRs related to the child_process subsystem. label Jun 30, 2017
@tniessen

Copy link
Copy Markdown
MemberAuthor

@tniessentniessen added the errors Issues and PRs related to JavaScript errors originated in Node.js core. label Jun 30, 2017
@TrottTrott added the semver-major PRs that contain breaking changes and should be released in the next major version. label Jun 30, 2017
Comment threadlib/internal/child_process.js Outdated
} 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',

Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
MemberAuthor

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?

Copy link
Copy Markdown
Member

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.

@tniessen

Copy link
Copy Markdown
MemberAuthor

@nodejs/ctc due to semverity

@mcollinamcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM as semver-major

tniessen added a commit that referenced this pull request Jul 3, 2017
PR-URL: #14009
Refs: #11273
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
@tniessen

Copy link
Copy Markdown
MemberAuthor

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

child_processIssues and PRs related to the child_process subsystem.errorsIssues and PRs related to JavaScript errors originated in Node.js core.semver-majorPRs 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.

8 participants

@tniessen@mcollina@refack@jasnell@lpinca@targos@Trott@nodejs-github-bot