Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make join not explode over Str type objects.
Fixes RT#120846.
  • Loading branch information
jnthn committed Jun 2, 2014
1 parent f993683 commit d78b631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Any.pm
Expand Up @@ -213,7 +213,7 @@ my class Any { # declared in BOOTSTRAP
while $list.gimme(0) {
$tmp := $list.shift;
nqp::push_s($rsa,
nqp::unbox_s(nqp::istype($tmp, Str) ?? $tmp !! $tmp.Str));
nqp::unbox_s(nqp::istype($tmp, Str) && nqp::isconcrete($tmp) ?? $tmp !! $tmp.Str));
}
nqp::push_s($rsa, '...') if $list.infinite;
nqp::p6box_s(nqp::join(nqp::unbox_s($separator.Str), $rsa))
Expand Down

0 comments on commit d78b631

Please sign in to comment.