Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vouillon committed Sep 20, 2024
1 parent 785564b commit 91d8286
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions compiler/lib/eval.ml
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ let constant_js_equal a b =
| _, Float_array _
| Int64 _, _
| _, Int64 _
| Int32 _, _
| _, Int32 _
| NativeInt _, _
| _, NativeInt _
| Tuple _, _
| _, Tuple _ -> None

Expand Down
4 changes: 4 additions & 0 deletions compiler/lib/flow.ml
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ let constant_identical a b =
| _, Float_array _
| Int64 _, _
| _, Int64 _
| Int32 _, _
| _, Int32 _
| NativeInt _, _
| _, NativeInt _
| Tuple _, _
| _, Tuple _ -> false

Expand Down
4 changes: 2 additions & 2 deletions compiler/tests-compiler/dune.inc
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,11 @@
(library
;; compiler/tests-compiler/gh1659.ml
(name gh1659_15)
(enabled_if true)
(enabled_if (and (<> %{profile} wasm) (<> %{profile} wasm-effects)))
(modules gh1659)
(libraries js_of_ocaml_compiler unix str jsoo_compiler_expect_tests_helper)
(inline_tests
(enabled_if true)
(enabled_if (and (<> %{profile} wasm) (<> %{profile} wasm-effects)))
(deps
(file %{project_root}/compiler/bin-js_of_ocaml/js_of_ocaml.exe)
(file %{project_root}/compiler/bin-jsoo_minify/jsoo_minify.exe)))
Expand Down

0 comments on commit 91d8286

Please sign in to comment.