-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
node:zlib implem: Expose zlib.constants #2496
Conversation
All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
recheck |
89ad8c7
to
637d66b
Compare
637d66b
to
e5ba13c
Compare
"BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1": -26, | ||
"BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2": -27, | ||
"BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES": -30, | ||
"BROTLI_DECODER_ERROR_UNREACHABLE": -31 |
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.
nit: if constants are added later it would be easy for this list to get out of date. I wonder if it would make sense to have the test fail if there are any unexpected constants in the constants
object. You can check for that fairly easily by grabbing the Object.keys()
and removing each item that is explicitly tested here then throwing if there are any left over at the end.
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.
Are you suggesting to test for this list of keys, and not check the values, or am I misunderstanding the suggestion?
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.
For for the list of keys and the values, but throw if there are additional keys in constants
not tested for explicitly.
e5ba13c
to
6eb4389
Compare
Thanks for the suggestions, guys. It should be ready to go now. |
6eb4389
to
f073bac
Compare
5364360
to
b171997
Compare
46658ff
to
2f40c42
Compare
If you would, rebase this PR on |
2f40c42
to
3420df7
Compare
@jasnell Done. However I still didn't sort out the zlib version inconsistency so I think it'll fail again. |
That's fine, I just noticed that the internal streams.ew-test failed and it's likely because of the commit that got reverted this morning. The rebase at least helps to rule that out |
daf6c11
to
3c66f2b
Compare
3c66f2b
to
ad2cb1c
Compare
No description provided.