Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "Port over a hack, pass more tests on the js backend."
This reverts commit f15ab3c.
  • Loading branch information
pmurias committed Aug 16, 2015
1 parent 9470abb commit c264dcc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/QRegex/Cursor.nqp
Expand Up @@ -725,14 +725,6 @@ class NQPMatch is NQPCapture {
method Int() { +self.Str() }
method Num() { +self.Str() }
#?endif

# HACK
#?if js
method to_s() { self.Str() }
method to_i() { self.Int() }
method to_n() { self.Num() }
#?endif

method Bool() { $!to >= $!from }
method chars() { $!to >= $!from ?? $!to - $!from !! 0 }

Expand Down

0 comments on commit c264dcc

Please sign in to comment.