Skip to content

Commit

Permalink
Issue #8099: badarg on non-list data into binary:join/2
Browse files Browse the repository at this point in the history
  • Loading branch information
onno-vos-dev committed Feb 8, 2024
1 parent 59ac3a7 commit 3fc013a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/stdlib/src/binary.erl
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,8 @@ join([H], _Separator) when is_binary(H) -> H;
join([H | T], Separator) ->
Acc = <<>>,
join(T, Separator, <<Acc/binary, H/binary>>).
join(Arg, Separator) ->
badarg_with_info([Arg, Separator]).
-spec join([binary()], binary(), binary()) -> binary().
join([], _Separator, Acc) -> Acc;
Expand Down

0 comments on commit 3fc013a

Please sign in to comment.