Skip to content
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

Async await support #5537

Merged
merged 51 commits into from
Jul 18, 2022
Merged

Async await support #5537

merged 51 commits into from
Jul 18, 2022

Conversation

cristianoc
Copy link
Collaborator

@cristianoc cristianoc commented Jul 11, 2022

Add support for async/await.
This was taken from cristianoc/rescript-compiler-experiments#1

  • questions on best way to implement the type check for nested promises
  • surface syntax from the syntax repo
  • tests
  • docs

jscomp/core/j.ml Outdated Show resolved Hide resolved
jscomp/frontend/ast_uncurry_gen.mli Show resolved Hide resolved
jscomp/ml/translcore.ml Outdated Show resolved Hide resolved
@@ -1864,7 +1864,34 @@ and type_expect ?in_function ?recarg env sexp ty_expected =
type_expect_ ?in_function ?recarg env sexp ty_expected
)
in
Cmt_format.set_saved_types
let () =
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the best place to perform this check? Performance?

jscomp/others/js_promise.ml Outdated Show resolved Hide resolved
jscomp/others/js_promise.ml Outdated Show resolved Hide resolved
@cristianoc cristianoc added this to the v10.1 milestone Jul 11, 2022
@cristianoc cristianoc force-pushed the async-await-support branch from 5210e3c to 8a38fb4 Compare July 18, 2022 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant