Skip to content

Commit

Permalink
Revert "Make Blob concatenation always return the left-hand type"
Browse files Browse the repository at this point in the history
This reverts commit 02a28de.

Reverting because there appears to be significant ecosystem fallout
in upstream modules such as BSON and HTTP::UserAgent.  Sadly, making
this fix opt-in with a 6.e version, is tricky until we can dispatch
on language version.
  • Loading branch information
lizmat committed Oct 9, 2022
1 parent 3b36d55 commit 792418b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.c/Buf.pm6
Expand Up @@ -1423,7 +1423,7 @@ multi sub prefix:<~>(Blob:D \a) {

multi sub infix:<~>(Blob:D $a) { $a }
multi sub infix:<~>(Blob:D $a, Blob:D $b) {
my $res := nqp::create($a);
my $res := nqp::create(nqp::eqaddr($a.WHAT,$b.WHAT) ?? $a !! Buf.^pun);
my $adc := nqp::decont($a);
my $bdc := nqp::decont($b);
my int $alen = nqp::elems($adc);
Expand Down

0 comments on commit 792418b

Please sign in to comment.