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

inspector: migrate to internal/errors #15619

Closed
wants to merge 3 commits into from

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Sep 26, 2017

migrate to internal/errors

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

inspector,errors

@jasnell jasnell added errors Issues and PRs related to JavaScript errors originated in Node.js core. inspector Issues and PRs related to the V8 inspector protocol labels Sep 26, 2017
@nodejs-github-bot nodejs-github-bot added errors Issues and PRs related to JavaScript errors originated in Node.js core. inspector Issues and PRs related to the V8 inspector protocol labels Sep 26, 2017
@jasnell
Copy link
Member Author

jasnell commented Sep 26, 2017

Ping @nodejs/tsc

@jasnell
Copy link
Member Author

jasnell commented Sep 26, 2017

@jasnell jasnell added the semver-major PRs that contain breaking changes and should be released in the next major version. label Sep 26, 2017
lib/inspector.js Outdated
throw new TypeError(
`"params" must be an object, got ${typeof params} instead`);
throw new errors.TypeError('ERR_INVALID_ARG_TYPE',
'params', 'Object', params);
Copy link
Member

Choose a reason for hiding this comment

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

Other errors mainly use 'object' (lower cased).

@BridgeAR
Copy link
Member

BridgeAR commented Sep 26, 2017

Do we not have any tests for the inspector error cases?

@jasnell
Copy link
Member Author

jasnell commented Sep 26, 2017

@BridgeAR ... none that were affected... which is a bit scary.

@BridgeAR
Copy link
Member

@jasnell would you be so kind and add some for those? I think it would be a shame not to use the opportunity otherwise.

@jasnell
Copy link
Member Author

jasnell commented Sep 28, 2017

Sure :-) gimme a couple of days tho.

@jasnell
Copy link
Member Author

jasnell commented Oct 2, 2017

Test added!

@jasnell jasnell force-pushed the inspector-internal-errors branch 2 times, most recently from 6c1c982 to 5bf3c97 Compare October 2, 2017 19:12
@jasnell jasnell requested a review from a team October 2, 2017 22:55
@jasnell jasnell force-pushed the inspector-internal-errors branch from 5bf3c97 to 3498510 Compare October 13, 2017 21:07
@jasnell
Copy link
Member Author

jasnell commented Oct 13, 2017

Ping @nodejs/tsc ... review please?

@jasnell
Copy link
Member Author

jasnell commented Oct 13, 2017

Copy link
Contributor

@ofrobots ofrobots left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks!

@@ -236,6 +236,10 @@ E('ERR_HTTP_INVALID_STATUS_CODE',
E('ERR_HTTP_TRAILER_INVALID',
'Trailers are invalid with this transfer encoding');
E('ERR_INDEX_OUT_OF_RANGE', 'Index out of range');
E('ERR_INSPECTOR_ALREADY_CONNECTED', 'Already connected');
Copy link
Member

Choose a reason for hiding this comment

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

Nit: The inspector is already connected?

jasnell added a commit that referenced this pull request Oct 16, 2017
PR-URL: #15619
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ali Ijaz Sheikh <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
@jasnell
Copy link
Member Author

jasnell commented Oct 16, 2017

Landed in 4cf56ad

@jasnell jasnell closed this Oct 16, 2017
addaleax pushed a commit to ayojs/ayo that referenced this pull request Oct 18, 2017
PR-URL: nodejs/node#15619
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ali Ijaz Sheikh <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
errors Issues and PRs related to JavaScript errors originated in Node.js core. inspector Issues and PRs related to the V8 inspector protocol 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