Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix for MATCH on parrot
nqp::split returns a ResizeableStringArray which happily explodes in a for loop
  • Loading branch information
FROGGS committed Sep 17, 2014
1 parent 8d45e69 commit dae02a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/Cursor.pm
Expand Up @@ -89,7 +89,10 @@ my class Cursor does NQPCursorRole {
}
}
else {
for nqp::split('=', $name) -> $name {
my Mu $names := nqp::split('=', $name);
my $iter := nqp::iterator($names);
while $iter {
my $name := nqp::shift($iter);
my Mu $capval := nqp::atkey($caplist, $name);
#?if jvm
my int $needs_list = nqp::isconcrete($capval) &&
Expand Down

0 comments on commit dae02a4

Please sign in to comment.