This file contains hidden or 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
| 'use strict'; | |
| // ============================================================== | |
| // HELPERS | |
| // ============================================================== | |
| // Needed to create a _really_ asynchronous function. A fake asynchronous function (returning "Promise.reject()" | |
| // right away, for example) actually creates a stacktrace. | |
| const wait = delay => new Promise(resolve => setTimeout(() => resolve(), delay)); |
NewerOlder