This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #119351] fix regression in B::CV::GV
authorTony Cook <tony@develop-help.com>
Sun, 25 Aug 2013 23:04:47 +0000 (09:04 +1000)
committerTony Cook <tony@develop-help.com>
Sun, 25 Aug 2013 23:04:47 +0000 (09:04 +1000)
commit4883c53987d8454a564f10828c8ce655205ccdaa
treed60ff43c800fa2862abb29373c2913f1f9f43125
parentdd4728cdd134e435e22c1a20712eca96c65a3163
parentd80ab0867de84ccc6bf859c4847b40943bfaa398
[perl #119351] fix regression in B::CV::GV

The fix for [perl #118525] introduced a regression in the behavior of
B::CV::GV.

Previously it would return a B::SPECIAL when the GV slot was NULL, the
incorrect fix changed it to return undef.

This change fixes B::CV::GV to return a B::SPECIAL for NULL for both
B::main_cv and for B::CV objects created from lexical subs.