-
Notifications
You must be signed in to change notification settings - Fork 153
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
Time forward testing #36
Comments
Do people usually do that testing from Node or in the browser? It seems like something that needs to be provided by the engine host environment rather than from within the script itself so that it would also affect |
I make heavy use of NodaTime's |
It seems problematic to introduce such a feature without heavy host integration. E.g. what is its impact on setTimeout, event.timeStamp, etc. I'd suggest leaving it out of this proposal; it has enough weight to be a large proposal in its own, and if done properly will require stakeholders outside TC39. |
Can we close this as unwanted? Especially in light of the debate in #73 ? |
Libraries like Moment provide a way to override the "current time" with a function of one's choice for the purpose of time-forward testing.
Do we provide a way to do this or just let people monkey patch the instant object?
The text was updated successfully, but these errors were encountered: