Skip to content

Commit

Permalink
Fix issue with uninitialized _param in recursive functions with uni…
Browse files Browse the repository at this point in the history
…t argument.

Fixes #6719
  • Loading branch information
cristianoc authored and cknitt committed Jul 26, 2024
1 parent 00903af commit a4465d4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- Ignore `@uncurry` attribute in uncurried mode, to avoid generating calls to `Curry` at runtime. https://github.com/rescript-lang/rescript-compiler/pull/6869
- Avoid generating calls to Curry when adjusting arity of uncurried functions. https://github.com/rescript-lang/rescript-compiler/pull/6870
- Fix build after calling without `-warn-error`, see https://github.com/rescript-lang/rescript-compiler/issues/6868 for more details. https://github.com/rescript-lang/rescript-compiler/pull/6877
- Fix issue with uninitialized `_param` in recursive functions with unit argument. https://github.com/rescript-lang/rescript-compiler/pull/6907

# 11.1.3-rc.1

Expand Down
1 change: 1 addition & 0 deletions jscomp/core/lam_compile.ml
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ and compile_recursive_let ~all_bindings (cxt : Lam_compile_context.t)
]}
[Alias] may not be exact
*)
let params = if oneUnitArg then [] else params in
let ret : Lam_compile_context.return_label =
{
id;
Expand Down
1 change: 0 additions & 1 deletion jscomp/test/uncurry_test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a4465d4

Please sign in to comment.