Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
"use fatal" when constant folding.
This prevents us from getting a Failure and constant-folding to that.
Stashing a Failure away is a bad idea since we might be in a "use
fatal" context, and cannot enforce that.
  • Loading branch information
jnthn committed Apr 8, 2015
1 parent b05c2cc commit a7b374d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Perl6/Optimizer.nqp
Expand Up @@ -1229,6 +1229,7 @@ class Perl6::Optimizer {
my int $survived := 0;
my $ret_value;
try {
my $*FATAL := 1;
$ret_value := $obj(|@args);
$survived := 1 ;
CONTROL {
Expand Down

0 comments on commit a7b374d

Please sign in to comment.