This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix Carp stacktraces after deleting a stash
authorJesse Luehrs <doy@tozt.net>
Thu, 29 Mar 2012 02:44:41 +0000 (21:44 -0500)
committerJesse Luehrs <doy@tozt.net>
Thu, 8 Nov 2012 02:28:03 +0000 (20:28 -0600)
commit5bbc4d5d842c1afbc106bdd94148920162063f9a
tree57ec5940fee9a43439a2c45e47aee38ff0176068
parentdea1691deb1529b0ed4d6aa3d0d8e249f071483c
fix Carp stacktraces after deleting a stash

When a stash is deleted, caller() will return undef in the package slot
for any stack level for which the deleted stash was the current package.
This made Carp confused in some cases, so fix that.
MANIFEST
dist/Carp/lib/Carp.pm
dist/Carp/lib/Carp/Heavy.pm
dist/Carp/t/stash_deletion.t [new file with mode: 0644]