-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, if you had a let binding that depended on a previous binding, it wouldn't work because the `async` macro would expand into a `js/Promise.all` call with the values, and the symbols as the bindings for the next `.then` call. This meant that if one of the values in `Promise.all` depended on a previous binding symbol, it wouldn't be able to resolve it. This commit fixes this by generating a new `let` call for each pair if any of the binding pairs has `await`. Fixes #30.
- Loading branch information
Showing
2 changed files
with
103 additions
and
64 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