-
Notifications
You must be signed in to change notification settings - Fork 369
improve clearTimeout and clearInterval compatibility #3908
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
Conversation
1137908
to
a5fe4c8
Compare
a5fe4c8
to
c09d373
Compare
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
c09d373
to
b784ede
Compare
b784ede
to
33a10f4
Compare
33a10f4
to
7e81ccd
Compare
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 as long as the type generation looks good with the switch to using JsNumber
(I honestly can't remember if that was ever updated since I don't know if anything is actually using JsNumber
yet)
Browsers do not throw an error when passed NaN value to clearTimeout and clearInterval. On workerd, this throws an error under UBsan builds.
This fixes this issue.