Skip to content

Commit fcff8e2

Browse files
committed
allow !cursor_init to be used by a BUILD
1 parent 02c141f commit fcff8e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/QRegex/Cursor.nqp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,8 @@ role NQPMatchRole is export {
394394
$caps;
395395
}
396396

397-
method !cursor_init($orig, :$p = 0, :$c, :$shared, :$braid, *%ignore) {
398-
my $new := self.CREATE();
397+
method !cursor_init($orig, :$p = 0, :$c, :$shared, :$braid, :$build, *%ignore) {
398+
my $new := $build ?? self !! self.CREATE();
399399
unless $shared {
400400
$shared := nqp::create(ParseShared);
401401
nqp::bindattr($shared, ParseShared, '$!CUR_CLASS', $?CLASS);

0 commit comments

Comments
 (0)