Skip to content

Commit

Permalink
Merge pull request #1144 from skids/rt126523
Browse files Browse the repository at this point in the history
Fix ::("GLOBAL") for RT#126523
  • Loading branch information
niner committed Aug 30, 2017
2 parents e3af662 + 1f6a782 commit f1b0863
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/operators.pm
Expand Up @@ -613,7 +613,11 @@ sub INDIRECT_NAME_LOOKUP($root, *@chunks) is raw {
nqp::if(
GLOBAL::.EXISTS-KEY($first),
GLOBAL::.AT-KEY($first),
X::NoSuchSymbol.new(symbol => $name).fail
nqp::if(
nqp::iseq_s($first, 'GLOBAL'),
GLOBAL,
X::NoSuchSymbol.new(symbol => $name).fail
)
)
))),
nqp::while(
Expand Down

0 comments on commit f1b0863

Please sign in to comment.