-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add an async syntax regression test
- cover the bases and ensure async is supported too, not just generators - use some syntax from a bug report that would cause async-to-promises to produce invalid JS and Rollup to subsequently error out
- Loading branch information
Showing
2 changed files
with
7 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// regression test for async/await | ||
// code inspired by https://github.com/formium/tsdx/issues/869 | ||
(async () => { | ||
await Promise.resolve(); | ||
console.log('a side effect to make sure this is output'); | ||
})(); |