-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use fake setTimeout in ShadowRealm scopes
Timers are not exposed in ShadowRealm globals, so allow Test.prototype.step_timeout() and Test.prototype.step_wait_func() to fall back to a 'fake' setTimeout implementation. This allows tests that use these harness features to also run in ShadowRealm scopes. The fake setTimeout is based on the one in test262, h/t Rick Waldron.
- Loading branch information
Showing
1 changed file
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters