-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
src/core/function: grab Date off win #37225
Conversation
58e2d5f
to
2a66bca
Compare
Hey @jridgewell! These files were changed:
|
interface Window { | ||
Date: typeof Date; | ||
} | ||
} |
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.
Should this be in this directory? Could it be scoped to the root dir?
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.
@rcebulko and I are in the middle of bike-shedding what to do about the Window
globals. Since he's out I followed the pattern he started (of scoping as closely as possible).
My preference would be to group together all of the builtin mappings from global into Window in a single window.d.ts
file.
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.
I think you're right, my approach made more sense when using reference tag but since we can't we may as well combine
summary
Fixes a small bug that should only affect tests introduced in #37141.
TODO
Why didn't CI fail for the problem PR