This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Propagate context properly in Safe->reval
authorFather Chrysostomos <sprout@cpan.org>
Sat, 20 Dec 2014 14:50:12 +0000 (06:50 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 21 Dec 2014 15:06:13 +0000 (07:06 -0800)
commit2e4af4cf6b38b2c5a571e1232ee507b8a01cda8a
treef835bc29cc655e453334b417704045c27a1874ed
parentcee11a521f0966a42b8be1949f915e0c926c9f20
Propagate context properly in Safe->reval

(or, rather, in Opcode.xs).

It was providing scalar context when invoked in void context.  Test-
ing Safe->reval itself is complicated, because Opcode.xs, which is an
essential part of the fix, is not dual-life.
dist/Safe/Safe.pm
dist/Safe/t/safe2.t
ext/Opcode/Opcode.xs
ext/Opcode/t/Opcode.t