Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure @?INC strings are properly ro
  • Loading branch information
lizmat committed May 21, 2015
1 parent c006cd1 commit 83f09e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Perl6/World.nqp
Expand Up @@ -671,9 +671,10 @@ class Perl6::World is HLL::World {
$DEBUG(($push ?? "Push" !! "Unshift") ~ "ing to @?INC:") if $DEBUG;

for $arglist -> $arg {
my $string := nqp::index($arg,'#') == -1
my $string := nqp::decont(nqp::index($arg,'#') == -1
?? nqp::hllizefor("file#$arg", 'perl6')
!! $arg;
!! $arg
);
$push
?? nqp::push($INC,$string)
!! nqp::unshift($INC,$string);
Expand Down

0 comments on commit 83f09e0

Please sign in to comment.