Skip to content
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

Merged
merged 1 commit into from
Dec 15, 2021
Merged

Conversation

samouri
Copy link
Member

@samouri samouri commented Dec 15, 2021

summary
Fixes a small bug that should only affect tests introduced in #37141.

TODO
Why didn't CI fail for the problem PR

@samouri samouri self-assigned this Dec 15, 2021
@samouri samouri marked this pull request as ready for review December 15, 2021 18:59
@amp-owners-bot
Copy link

Hey @jridgewell! These files were changed:

src/core/types/function/date-global.d.ts
src/core/types/function/index.js

@samouri samouri enabled auto-merge (squash) December 15, 2021 19:13
interface Window {
Date: typeof Date;
}
}
Copy link
Member

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?

Copy link
Member Author

@samouri samouri Dec 15, 2021

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.

Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants