Skip to content

Commit

Permalink
finally fix masak++'s example of failed error reporting
Browse files Browse the repository at this point in the history
also use .DEFINITE instead of .defined
  • Loading branch information
moritz committed Apr 21, 2012
1 parent 06d40a0 commit c89ce89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Backtrace.pm
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ my class Backtrace is List {
return $startidx.list unless $start;
my $current = $start.outer;
my %outers;
while $current.defined {
while $current.DEFINITE {
%outers{$current.static_id} = $start;
$current = $current.outer;
}
my @outers;
loop (my Int $i = $startidx; $i < $.end; ++$i) {
if self.at_pos($i).code && %outers{self.at_pos($i).code.static_id}.defined {
if self.at_pos($i).code.DEFINITE && %outers{self.at_pos($i).code.static_id}.DEFINITE {
@outers.push: $i;
return @outers if self.at_pos($i).is-routine;
}
Expand Down

0 comments on commit c89ce89

Please sign in to comment.