Permalink
Browse files

fix QRegex/Cursor.nqp

  • Loading branch information...
gerdr committed Feb 16, 2013
1 parent ca1ba8c commit 07459749e0c6edec4c98b74b36ec70a9e5194701
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/QRegex/Cursor.nqp
View
@@ -727,7 +727,8 @@ class NQPCursor does NQPCursorRole {
my $res := [];
for $var {
my $elem := $_;
- $elem := $rxcompiler.compile($elem) unless nqp::isinvokable($elem);
+ $elem := $rxcompiler.compile($elem).main_sub()
+ unless nqp::isinvokable($elem);
nqp::push($res, $elem);
}
$var := $res;

0 comments on commit 0745974

Please sign in to comment.