-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
buffer: validate arg for compare #23878
Conversation
b48426d
to
ab4486b
Compare
@nodejs/buffer |
Semver major, so would need one more approval from @nodejs/tsc. |
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.
LGTM
Seems to break many many tests which I guess is due to changes that happened since this was opened? Anyway, will put this one on hold for now. |
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.
Seems to break many many tests which I guess is due to changes that happened since this was opened? Anyway, will put this one on hold for now.
Refs: #23840
Makes server-major changes to
buf.compare()
argument validation, to be in line with docs (require areg to beNumber
. Disable coerce string like0xff
);Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes