Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update some package lookups.
  • Loading branch information
jnthn committed Apr 27, 2011
1 parent 177dadd commit 5d65440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NQP/Actions.pm
Expand Up @@ -1056,7 +1056,7 @@ class NQP::Actions is HLL::Actions {
$past :=
PAST::Op.new(
:pasttype<callmethod>, :name<new>,
PAST::Var.new( :name('Method'), :namespace(['Regex']), :scope<package> ),
lexical_package_lookup(['Regex', 'Method'], $/),
$regex
);
if pir::defined($*PACKAGE-SETUP) {
Expand Down Expand Up @@ -1291,7 +1291,7 @@ class NQP::Actions is HLL::Actions {
my $past :=
PAST::Op.new(
:pasttype<callmethod>, :name<new>,
PAST::Var.new( :name('Regex'), :namespace(['Regex']), :scope<package> ),
lexical_package_lookup(['Regex', 'Regex'], $/),
$regex
);
# In sink context, we don't need the Regex::Regex object.
Expand Down

0 comments on commit 5d65440

Please sign in to comment.