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

Access Date on _global #178

Merged
merged 1 commit into from
May 15, 2018
Merged

Access Date on _global #178

merged 1 commit into from
May 15, 2018

Conversation

SimenB
Copy link
Member

@SimenB SimenB commented May 15, 2018

Purpose (TL;DR) - mandatory

This was discovered by @mjesun when trying to apply a version of Jest with Lolex at Facebook.

I'm not sure what the solution should be. Our idea was to just assign the prototype, but it is already copied

@SimenB
Copy link
Member Author

SimenB commented May 15, 2018

Just to clarify - the first assertion passes, the second one fails

@SimenB SimenB changed the title add failing test for instanceof Date Access Date on _global May 15, 2018
@SimenB
Copy link
Member Author

SimenB commented May 15, 2018

Found the fix! It was me in #164 not being thorough enough

@mjesun
Copy link

mjesun commented May 15, 2018

LGTM to me! But that's not Jest, I can't merge 😄

I can apply the patch internally, though, and trigger a second run.

@benjamingr benjamingr merged commit 8fb9173 into sinonjs:master May 15, 2018
@benjamingr
Copy link
Member

Thanks!

@SimenB SimenB deleted the date-instanceof branch May 15, 2018 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants