This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #112352] Make ‘use v5.15’ always enable unicode_eval
authorFather Chrysostomos <sprout@cpan.org>
Wed, 11 Apr 2012 04:40:38 +0000 (21:40 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 11 Apr 2012 04:40:38 +0000 (21:40 -0700)
commit915a83fef170f61282d667f6efebfd1093e261ae
tree9f87ad4e38d5815065e43af6f0f5a7267d8bf9f9
parent52e67aba07fa1e33f37f56e48e0dd93a008ecede
[perl #112352] Make ‘use v5.15’ always enable unicode_eval

When the unicode_eval feature was added, the code for compiling an
eval was modified to check whether the feature was enabled, before
flagging the op.

For efficiency’s sake, since there was already a block that checked to
see whether %^H was localised (which happens automatically when it is
modified), and since features always used %^H, I put the check inside
that block, so it would be skipped altogether without %^H set.  (It’s
debatable whether it was actually any faster.)

Later, in commit 6634bb9d0ed1, when I changed implicit features to use
$^H, I didn’t update the eval code.  So it would only check to see
whether the feature was enabled if %^H was also enabled.

This fixes that by moving it below the %^H block.
op.c
t/lib/feature/implicit