Skip to content

Commit 73de526

Browse files
committed
temporarily disable sawcaps part of optimization
1 parent 041e1e2 commit 73de526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QRegex/Cursor.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ class NQPCursor does NQPCursorRole {
851851
# For captures with lists, initialize the lists.
852852
my %caplist := $NO_CAPS;
853853
my $rxsub := nqp::getattr(self, NQPCursor, '$!regexsub');
854-
my int $sawcaps := 0;
854+
my int $sawcaps := 1;
855855
if !nqp::isnull($rxsub) && nqp::defined($rxsub) {
856856
%caplist := nqp::can($rxsub, 'CAPS') ?? $rxsub.CAPS() !! nqp::null();
857857
if !nqp::isnull(%caplist) && nqp::istrue(%caplist) {

0 commit comments

Comments
 (0)