-
Notifications
You must be signed in to change notification settings - Fork 231
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
Update to Node.js 18.19.0, add Node 21.x to CI #528
Conversation
Signed-off-by: Matteo Collina <hello@matteocollina.com>
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!
Signed-off-by: Matteo Collina <hello@matteocollina.com>
@atlowChemi I need some help here in providing a polyfill for |
Signed-off-by: Matteo Collina <hello@matteocollina.com>
@atlowChemi I implemented something, PTAL |
All green |
lib/ours/util.js
Outdated
// validateAbortSignal(signal, 'signal'); | ||
// validateFunction(listener, 'listener'); |
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.
Any specific reason to not implement these?
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.
No particular reasons. Do you know where I can copy them from?
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.
The biggest reason I didn't test them is that they were not needed for the tests to pass.
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.
They might not be required for the tests 🤷🏽♂️
https://github.com/nodejs/node/blob/01719333623aaa324d05011ffcba0dddc0ea3666/lib/internal/validators.js#L421-L428
https://github.com/nodejs/node/blob/01719333623aaa324d05011ffcba0dddc0ea3666/lib/internal/validators.js#L438-L441
const validateAbortSignal = (signal, name) => {
if (signal !== undefined &&
(signal === null ||
typeof signal !== 'object' ||
!('aborted' in signal))) {
throw new ERR_INVALID_ARG_TYPE(name, 'AbortSignal', signal);
}
};
const validateFunction = (value, name) => {
if (typeof value !== 'function')
throw new ERR_INVALID_ARG_TYPE(name, 'Function', value);
};
cc @atlowChemi |
Signed-off-by: Matteo Collina <hello@matteocollina.com>
No description provided.