Skip to content
Permalink
Browse files

Match: Use `nqp::create(Array)` Instead of `[]`

Those calls used to be generated as a full
invocation that spesh wouldn't inline.
  • Loading branch information...
timo committed Nov 29, 2018
1 parent 93ea7ed commit a0cb89a7211beaf1b918d926b892a32945509c37
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/Match.pm6
@@ -48,8 +48,8 @@ my class Match is Capture is Cool does NQPMatchRole {
nqp::iscclass(nqp::const::CCLASS_NUMERIC, $name, 0)
?? nqp::bindpos(
nqp::if(nqp::isconcrete($list), $list, ($list := nqp::list())),
nqp::fromstr_I($name, Int), [])
!! nqp::bindkey($hash, $name, []);
nqp::fromstr_I($name, Int), nqp::create(Array))
!! nqp::bindkey($hash, $name, nqp::create(Array));
}
}
$onlyname = $name if nqp::iseq_i($namecount, 1);

0 comments on commit a0cb89a

Please sign in to comment.
You can’t perform that action at this time.