Skip to content

Commit

Permalink
generated JS: fix for loop formatting (#1296)
Browse files Browse the repository at this point in the history
* generated JS: fix `for` loop formatting

* snapshot runtime tests

* add changelog entry
  • Loading branch information
anmonteiro authored Jan 14, 2025
1 parent 9669dc8 commit 8ec534d
Show file tree
Hide file tree
Showing 27 changed files with 81 additions and 79 deletions.
2 changes: 2 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ Unreleased
([#1287](https://github.com/melange-re/melange/pull/1287))
- JS generation: remove redundant switch cases branches
([#1295](https://github.com/melange-re/melange/pull/1295))
- JS generation: move space before comma inside `for` definition
([#1296](https://github.com/melange-re/melange/pull/1296))

4.0.1 2024-06-07
---------------
Expand Down
2 changes: 1 addition & 1 deletion jscomp/core/js_dump.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1113,8 +1113,8 @@ and statement_desc top cxt (s : J.statement_desc) : cxt =
let cxt =
expression ~level:1 cxt ident_expression
in
space cxt;
comma cxt;
space cxt;
let id = Ident.create (Ident.name id ^ "_finish") in
let cxt = ident cxt id in
space cxt;
Expand Down
4 changes: 2 additions & 2 deletions jscomp/test/dist/jscomp/test/bdd.js

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

2 changes: 1 addition & 1 deletion jscomp/test/dist/jscomp/test/bench.js

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

8 changes: 4 additions & 4 deletions jscomp/test/dist/jscomp/test/bs_mutable_set_test.js

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

2 changes: 1 addition & 1 deletion jscomp/test/dist/jscomp/test/bs_poly_mutable_set_test.js

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

6 changes: 3 additions & 3 deletions jscomp/test/dist/jscomp/test/class_type_ffi_test.js

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

4 changes: 2 additions & 2 deletions jscomp/test/dist/jscomp/test/complex_if_test.js

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

2 changes: 1 addition & 1 deletion jscomp/test/dist/jscomp/test/earger_curry_test.js

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

2 changes: 1 addition & 1 deletion jscomp/test/dist/jscomp/test/ext_array_test.js

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

4 changes: 2 additions & 2 deletions jscomp/test/dist/jscomp/test/ext_bytes_test.js

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

2 changes: 1 addition & 1 deletion jscomp/test/dist/jscomp/test/ext_pervasives_test.js

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

10 changes: 5 additions & 5 deletions jscomp/test/dist/jscomp/test/flexible_array_test.js

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

8 changes: 4 additions & 4 deletions jscomp/test/dist/jscomp/test/for_loop_test.js

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

2 changes: 1 addition & 1 deletion jscomp/test/dist/jscomp/test/for_side_effect_test.js

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

2 changes: 1 addition & 1 deletion jscomp/test/dist/jscomp/test/imm_map_bench.js

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

4 changes: 2 additions & 2 deletions jscomp/test/dist/jscomp/test/int_overflow_test.js

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

12 changes: 6 additions & 6 deletions jscomp/test/dist/jscomp/test/ocaml_parsetree_test.js

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

2 changes: 1 addition & 1 deletion jscomp/test/dist/jscomp/test/ocaml_re_test.js

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

Loading

0 comments on commit 8ec534d

Please sign in to comment.