@@ -902,13 +902,7 @@ let private strings
902902 // String.Compare
903903 | " Compare" , None, [ a; b ] -> Helper.LibCall( com, " fable_string" , " compare" , t, [ a; b ]) |> Some
904904 | " Compare" , None, [ a; b; compType ] ->
905- // Dispatch on ignoreCase bool (true) or StringComparison enum (5=OrdinalIgnoreCase)
906- emitExpr
907- r
908- t
909- [ a; b; compType ]
910- " (fun() -> case $2 of true -> fable_string:compare_ignore_case($0, $1); 5 -> fable_string:compare_ignore_case($0, $1); _ -> fable_string:compare($0, $1) end end)()"
911- |> Some
905+ Helper.LibCall( com, " fable_string" , " compare" , t, [ a; b; compType ]) |> Some
912906 | " Compare" , None, [ a; startA; b; startB; len ] ->
913907 // String.Compare(a, startA, b, startB, len) — substring comparison
914908 emitExpr
@@ -923,7 +917,7 @@ let private strings
923917 r
924918 t
925919 [ a; startA; b; startB; len; compType ]
926- " (fun() -> case $5 of true -> fable_string:compare_ignore_case (binary:part($0, $1, $4), binary:part($2, $3, $4)); 5 -> fable_string:compare_ignore_case(binary:part($0 , $1, $4), binary:part($2, $3, $4)); _ -> fable_string:compare(binary:part($0, $1, $4), binary:part($2, $3, $4)) end end)( )"
920+ " fable_string:compare (binary:part($0, $1, $4), binary:part($2, $3, $4), $5 )"
927921 |> Some
928922 // String.IsNullOrEmpty / IsNullOrWhiteSpace (static on System.String)
929923 | " IsNullOrEmpty" , None, [ str ] -> Helper.LibCall( com, " fable_string" , " is_null_or_empty" , t, [ str ]) |> Some
@@ -4803,7 +4797,7 @@ let tryCall
48034797 | " Fable.Core.BeamInterop.Erlang" ->
48044798 match info.CompiledName, args with
48054799 | " receive" , [ timeoutArg ] -> emitExpr r t [ timeoutArg ] " __fable_beam_receive__($0)" |> Some
4806- | " receiveForever " , _ -> emitExpr r t [] " __fable_beam_receive_forever__" |> Some
4800+ | " receive " , [] -> emitExpr r t [] " __fable_beam_receive_forever__" |> Some
48074801 | _ -> None
48084802 // Testing assertions (used by our test framework)
48094803 | " Fable.Core.Testing.Assert" ->
0 commit comments