Skip to content

Commit c264dcc

Browse files
committed
Revert "Port over a hack, pass more tests on the js backend."
This reverts commit f15ab3c.
1 parent 9470abb commit c264dcc

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/QRegex/Cursor.nqp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -725,14 +725,6 @@ class NQPMatch is NQPCapture {
725725
method Int() { +self.Str() }
726726
method Num() { +self.Str() }
727727
#?endif
728-
729-
# HACK
730-
#?if js
731-
method to_s() { self.Str() }
732-
method to_i() { self.Int() }
733-
method to_n() { self.Num() }
734-
#?endif
735-
736728
method Bool() { $!to >= $!from }
737729
method chars() { $!to >= $!from ?? $!to - $!from !! 0 }
738730

0 commit comments

Comments
 (0)