Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

guard against undefined code object in backtraces

I have no idea why this is necessary, but it seems to fix a lot of broken spectests
  • Loading branch information...
commit c37dfc740e127dc6cc5ec42cd36555fab59f7120 1 parent 78f9616
@moritz moritz authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/core/Backtrace.pm
View
1  src/core/Backtrace.pm
@@ -49,6 +49,7 @@ my class Backtrace is List {
multi method new(Parcel $bt, Int $offset = 0) {
my $new = self.bless();
for $offset .. $bt.elems - 1 {
+ next unless defined $bt[$_]<sub>;
my Mu $sub := nqp::getattr(nqp::decont($bt[$_]<sub>), ForeignCode, '$!do');
next if nqp::isnull($sub);
my $code;
Please sign in to comment.
Something went wrong with that request. Please try again.