Skip to content

Commit 0bc4815

Browse files
committed
Fix issue where uncurried async functions were emitted without async
1 parent 708ff62 commit 0bc4815

File tree

6 files changed

+21
-20
lines changed

6 files changed

+21
-20
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
- Fix location issue in error messages with JSX V4 where the multiple props types are defined https://github.com/rescript-lang/syntax/pull/655
2626
- Fix location issue in make function in JSX V4 that breaks dead code elimination https://github.com/rescript-lang/syntax/pull/660
2727
- Fix parsing (hence pretty printing) of expressions with underscore `_` and comments.
28+
- Fix issue where uncurried async functions were emitted without `async` https://github.com/rescript-lang/rescript-compiler/pull/5718
2829

2930
# 10.1.0-alpha.2
3031

jscomp/frontend/ast_async.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let add_async_attribute ~async (body : Parsetree.expression) =
1515
{
1616
body with
1717
pexp_attributes =
18-
({ txt = "async"; loc = Location.none }, PStr [])
18+
({ txt = "res.async"; loc = Location.none }, PStr [])
1919
:: body.pexp_attributes;
2020
}
2121
else body

jscomp/main/builtin_cmi_datasets.ml

+4-4
Large diffs are not rendered by default.

lib/4.06.1/unstable/js_compiler.ml

+5-5
Large diffs are not rendered by default.

lib/4.06.1/unstable/js_playground_compiler.ml

+5-5
Large diffs are not rendered by default.

lib/4.06.1/whole_compiler.ml

+5-5
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)