Skip to content

Commit d653ec4

Browse files
committed
Update the way we look for hashes.
1 parent bac6e6e commit d653ec4

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
@@ -486,7 +486,7 @@ class NQPCursor does NQPCursorRole {
486486
my $EMPTY_MATCH_HASH := nqp::hash();
487487
method MATCH() {
488488
my $match := nqp::getattr(self, NQPCursor, '$!match');
489-
unless nqp::istype($match, NQPMatch) || pir::isa__IPs($match, 'Hash') {
489+
unless nqp::istype($match, NQPMatch) || pir::nqp_ishash__IP($match) {
490490
my $list := $EMPTY_MATCH_LIST;
491491
my $hash := $EMPTY_MATCH_HASH;
492492
$match := nqp::create(NQPMatch);

0 commit comments

Comments
 (0)