This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Teach mro code about null array elements
authorFather Chrysostomos <sprout@cpan.org>
Sun, 1 Sep 2013 21:47:38 +0000 (14:47 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 1 Sep 2013 21:47:38 +0000 (14:47 -0700)
commit3df5c4b513c5e5c2f25d831f556f2a1c5693ce98
treedf8369277985791b3c6d12df55c52c32bcb95b1d
parentcbf45e8454c586302a9f324433b3155521872636
Teach mro code about null array elements

This is part of ticket #119433.

Commit ce0d49f changed AVs to use NULL for nonexistent elements.  The
mro lookup code was not accounting for that, causing Class::Contract’s
tests to crash (and perhaps other modules, too).
ext/mro/mro.xs
mro.c
t/mro/basic.t
t/mro/isa_c3.t