Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DUMP(): Handle unmarshallable values in native hashes by marking the …
…entire native hash contents unmarshallable and continuing
  • Loading branch information
japhb committed Apr 9, 2013
1 parent 51c9784 commit a822ca4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/core/Mu.pm
Expand Up @@ -568,8 +568,11 @@ sub DUMP(|args (*@args, :$indent-step = 4, :%ctx?)) {
my str $id = $type ~ '<' ~ $obj_num ~ '>';

my @pieces;
for $topic {
@pieces.push: $_.key ~ ' => ' ~ DUMP($_.value, :$indent-step, :%ctx);
{
for $topic {
@pieces.push: $_.key ~ ' => ' ~ DUMP($_.value, :$indent-step, :%ctx);
}
CATCH { default { @pieces.push: '(unmarshallable)' } }
}

@pieces.DUMP-PIECES($id ~ '(', :$indent-step);
Expand Down

0 comments on commit a822ca4

Please sign in to comment.