Skip to content

Commit 73721c4

Browse files
committed
erase captures in $/.prune
1 parent cb90f08 commit 73721c4

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/QRegex/Cursor.nqp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -707,10 +707,7 @@ class NQPMatch is NQPCapture {
707707

708708
method prune() {
709709
self.capture_prune();
710-
# if nqp::defined($!cursor) {
711-
# $!cursor.prune();
712-
$!cursor := NQPMu;
713-
# }
710+
$!cursor := NQPMu;
714711
}
715712

716713
method !make($made) { $!made := $made }

src/core/NQPCapture.nqp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ my class NQPCapture {
1818
method hash() { %!hash }
1919

2020
method capture_prune() {
21-
@!array := nqp::list();
22-
%!hash := nqp::hash();
21+
@!array := NQPMu;
22+
%!hash := NQPMu;
2323
}
2424

2525
}

0 commit comments

Comments
 (0)