Skip to content

Commit

Permalink
Fix compiling our-scoped subs.
Browse files Browse the repository at this point in the history
Not sure why we ever got away without this on Parrot.
  • Loading branch information
jnthn committed Apr 25, 2013
1 parent 1c43791 commit e8b076b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/NQP/Actions.nqp
Expand Up @@ -902,6 +902,10 @@ class NQP::Actions is HLL::Actions {
lexical_package_lookup([$name], $/),
QAST::Var.new( :name('&' ~ $name), :scope('lexical') )
));

# Also need to make sure it gets a code object so it's
# in the SC.
$*W.create_code($past, $name, 0);
}
}
$past := QAST::Var.new( :name('&' ~ $name), :scope('lexical') );
Expand Down

0 comments on commit e8b076b

Please sign in to comment.