Skip to content

Commit

Permalink
pass a decontainerized list to nqp::spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed Feb 8, 2014
1 parent 71a7a35 commit 4a95565
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/core/control.pm
Expand Up @@ -190,10 +190,12 @@ sub run(*@args ($, *@)) {
$envelem := nqp::shift($enviter);
nqp::bindkey($hash-without, nqp::iterkey_s($envelem), nqp::decont(nqp::iterval($envelem)))
}
my Mu $args-without := nqp::list();
for @args.eager {
nqp::push($args-without, nqp::decont($_));
}
try {
$status.status( nqp::p6box_i(
nqp::spawn(nqp::getattr(@args.eager, List, '$!items'), $*CWD.Str, $hash-without)
) );
$status.status( nqp::p6box_i( nqp::spawn($args-without, $*CWD.Str, $hash-without) ) );
}
$status
}
Expand Down

0 comments on commit 4a95565

Please sign in to comment.