Skip to content

Commit 6ba77eb

Browse files
committed
wip
1 parent f608b97 commit 6ba77eb

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

compiler/lib/generate.ml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,9 +1060,10 @@ let maybe_zero_or_nan = function
10601060
| J.ENum n -> (
10611061
match J.Num.to_string n with
10621062
| "NaN" -> true
1063-
| "-0." | "0." | "0" | "0." -> true
1064-
| J.EBin ((J.Bor | J.Lsr), _, _) -> false
1065-
| _ -> true)
1063+
| "-0." | "0." | "0" | "-0" -> true
1064+
| _ -> false)
1065+
| J.EBin ((J.Bor | J.Lsr), _, _) -> false
1066+
| _ -> true
10661067

10671068
let rec translate_expr ctx queue loc x e level : _ * J.statement_list =
10681069
match e with

compiler/tests-compiler/effects_toplevel.ml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,8 @@ let%expect_test "test-compiler/lib-effects/test1.ml" =
8181
dummy,
8282
function(_c_){
8383
var _d_ = i + 1 | 0;
84-
<<<<<<< HEAD
85-
if(! Object.is(5, i)) return caml_cps_exact_call1(_b_, _d_);
86-
caml_callback(g, [dummy]);
87-
=======
8884
if(5 !== i) return caml_cps_exact_call1(_b_, _d_);
89-
caml_callback(g, [undef]);
90-
>>>>>>> 21ff3c88d1 (fix)
85+
caml_callback(g, [dummy]);
9186
var Test = [0];
9287
runtime.caml_register_global(2, Test, "Test");
9388
});

0 commit comments

Comments
 (0)