-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Global timers #3706
Global timers #3706
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3706 +/- ##
==========================================
- Coverage 73.30% 73.26% -0.05%
==========================================
Files 278 278
Lines 20389 20398 +9
==========================================
- Hits 14947 14945 -2
- Misses 4492 4501 +9
- Partials 950 952 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
"clearTimeout": e.clearTimeout, | ||
"setInterval": e.setInterval, | ||
"clearInterval": e.clearInterval, | ||
// TODO the usage of `ToValue` here is so that goja doesn't do it automatically later |
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.
Nit; I don't fully get what's pending "to do" here based on this comment 🤔
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.
This is a workaround for #3707
Maybe TODO isn't the best option here 🤔
What?
Make k6/timers globally available
Why?
This is in general what most users expect - just being able to use
setTimeout
directly.Checklist
make lint
) and all checks pass.make tests
) and all tests pass.Related PR(s)/Issue(s)
#3589