Skip to content

Commit

Permalink
Make $_ available to BEGIN time compiled frames
Browse files Browse the repository at this point in the history
This is just a band aid for the workaround to our architectural issues.
  • Loading branch information
niner committed Jun 7, 2020
1 parent 537f887 commit 169f63d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/World.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -2893,7 +2893,7 @@ class Perl6::World is HLL::World {
# outer lexical context's symbols as those may contain or
# reference unserializable objects leading to compilation
# failures. Needs a smarter approach as noted above.
unless self.is_nested() || %seen{$name} {
if !%seen{$name} && ($name eq '$_' || !self.is_nested()) {
# Add symbol.
my %sym := %symbols{$name};
my $value := nqp::existskey(%sym, 'value') || nqp::existskey(%sym, 'lazy_value_from')
Expand Down

0 comments on commit 169f63d

Please sign in to comment.