Skip to content

Fix issue where uncurried async functions were emitted without async #5718

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- Fix location issue in error messages with JSX V4 where the multiple props types are defined https://github.com/rescript-lang/syntax/pull/655
- Fix location issue in make function in JSX V4 that breaks dead code elimination https://github.com/rescript-lang/syntax/pull/660
- Fix parsing (hence pretty printing) of expressions with underscore `_` and comments.
- Fix issue where uncurried async functions were emitted without `async` https://github.com/rescript-lang/rescript-compiler/pull/5718

# 10.1.0-alpha.2

Expand Down
2 changes: 1 addition & 1 deletion jscomp/frontend/ast_async.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let add_async_attribute ~async (body : Parsetree.expression) =
{
body with
pexp_attributes =
({ txt = "async"; loc = Location.none }, PStr [])
({ txt = "res.async"; loc = Location.none }, PStr [])
:: body.pexp_attributes;
}
else body
Expand Down
8 changes: 4 additions & 4 deletions jscomp/main/builtin_cmi_datasets.ml

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions lib/4.06.1/unstable/js_compiler.ml

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions lib/4.06.1/unstable/js_playground_compiler.ml

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions lib/4.06.1/whole_compiler.ml

Large diffs are not rendered by default.