Skip to content
Permalink
Browse files

Make Callee.file always return something

So we can reliable use .file on the _by_file methods.
  • Loading branch information...
lizmat committed Jun 1, 2019
1 parent 667c75d commit 161d7eeff0871b90b0ee6ff0df2a4a2ece209443
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/MoarVM/Profiler.pm6
@@ -143,6 +143,9 @@ class Callee does OnHash[<
}

# additional accessor logic
method file(--> Str:D) {
%!hash<file> // %!hash.BIND-KEY("file",'')
}
method name(--> Str:D) {
%!hash<name> // %!hash.BIND-KEY("name",'')
}
@@ -247,9 +250,6 @@ class Callee does OnHash[<
?? "Was {@done.join(', ')} and $last.\n"
!! "Was $last.\n";
}
else {
$gist ~= ".\n";
}
}
else {
if $.inlined_entries -> $_ {

0 comments on commit 161d7ee

Please sign in to comment.
You can’t perform that action at this time.