-
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, the `async` macro would attempt to treat a non-symbol value for a binding in a `let` as a function call and so the following would happen: ``` (h/async (let [result (await (js/Promise.resolve "value"))] ...)) ;; Compiles into... var xyz = Promise.resolve("value").call() ``` This commit fixes this so that `await`-ed `let` bindings are properly handled. - Remove macroexpansion from tests With the correct let binding handling, macroexpansion doesn't work because the resulting binding names are random (something like v_51003, p_40892), which can't really be equated. Since we can test the `async` macro directly we can just remove the macroexpansion tests completely. Fixes #30, fixes #31.
- Loading branch information
Showing
4 changed files
with
41 additions
and
99 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
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