Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix $!SETTING cache.
  • Loading branch information
timo committed Apr 14, 2013
1 parent 05ec31b commit abb0a5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Perl6/Optimizer.pm
Expand Up @@ -186,7 +186,9 @@ class Perl6::Optimizer {
$!SETTING := $block;
}
}
nqp::die("Optimizer couldn't find CORE while looking for $symbol.");
if !nqp::defined($!SETTING) {
nqp::die("Optimizer couldn't find CORE while looking for $symbol.");
}
} else {
if nqp::existskey(%!SETTING_CACHE, $symbol) {
return %!SETTING_CACHE{$symbol};
Expand Down

0 comments on commit abb0a5b

Please sign in to comment.