Skip to content
Permalink
Browse files

Set $*FOLDING when attempting to constant fold

This should help with cases like R#2459
  • Loading branch information...
lizmat committed Nov 1, 2018
1 parent 0bdf518 commit cec1f511a83d9fdcc6633a7bb8dfe2bad80607c9
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/Perl6/Optimizer.nqp
@@ -1777,6 +1777,7 @@ class Perl6::Optimizer {
my int $survived := 0;
my $ret_value;
try {
my $*FOLDING := 1;
$ret_value := $obj(|@args);
$survived := 1 ;
CONTROL {

0 comments on commit cec1f51

Please sign in to comment.
You can’t perform that action at this time.