Skip to content

zlib: migrate to internal/errors - #15618

Closed
jasnell wants to merge 2 commits into
nodejs:masterfrom
jasnell:zlib-internal-errors
Closed

zlib: migrate to internal/errors#15618
jasnell wants to merge 2 commits into
nodejs:masterfrom
jasnell:zlib-internal-errors

Conversation

@jasnell

Copy link
Copy Markdown
Member

Migrate zlib to use 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)

zlib, errors

@jasnelljasnell added 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. labels Sep 25, 2017
@nodejs-github-botnodejs-github-bot added errors Issues and PRs related to JavaScript errors originated in Node.js core. zlib Issues and PRs related to the zlib subsystem. labels Sep 25, 2017
@jasnell

Copy link
Copy Markdown
MemberAuthor

@jasnell

Copy link
Copy Markdown
MemberAuthor

Ping @nodejs/tsc

@BridgeARBridgeAR 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

Comment threadlib/zlib.js Outdated

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.

Nit - buffer is actually required before as well and that could be combined by writing

const{ kMaxLength, Buffer }=require('buffer');

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.

I'll get to that later but feel free to push a commit if you'd like

@BridgeAR
BridgeAR requested a review from a teamSeptember 28, 2017 22:56
@BridgeAR

Copy link
Copy Markdown
Member

@nodejs/tsc this needs some LGs

@mhdawsonmhdawson 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.

This looks good except that its missing adding the tests for the new errors in: test/parallel/test-internal-errors.js

See https://github.com/nodejs/node/blob/master/doc/guides/using-internal-errors.md#testing-new-errorss

@mhdawson

Copy link
Copy Markdown
Member

@jasnell can you add the tests for the new errors which are not constants.

@jasnell
jasnellforce-pushed the zlib-internal-errors branch from cd7ddb4 to 003f75eCompareOctober 2, 2017 18:15
@jasnell

Copy link
Copy Markdown
MemberAuthor

@mhdawson, added

@jasnell

Copy link
Copy Markdown
MemberAuthor

@mhdawsonmhdawson 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

jasnell added a commit that referenced this pull request Oct 2, 2017
PR-URL: #15618
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@jasnell

Copy link
Copy Markdown
MemberAuthor

Landed in 7489141

@jasnelljasnell closed this Oct 2, 2017
addaleax pushed a commit to addaleax/ayo that referenced this pull request Oct 4, 2017
PR-URL: nodejs/node#15618
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.zlibIssues and PRs related to the zlib subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@jasnell@BridgeAR@mhdawson@addaleax@lpinca@JungMinu@nodejs-github-bot