Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix .codes on Moar, in preparation for NFG.
  • Loading branch information
jnthn committed Apr 24, 2015
1 parent 0914fce commit 224db5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/Str.pm
Expand Up @@ -1467,7 +1467,12 @@ my class Str does Stringy { # declared in BOOTSTRAP

proto method codes(|) { * }
multi method codes(Str:D:) returns Int:D {
#?if moar
self.NFC.codes
#?endif
#?if jvm
nqp::p6box_i(nqp::chars(nqp::unbox_s(self)))
#?endif
}
multi method codes(Str:U:) returns Int:D {
self.Str; # generate undefined warning
Expand Down

0 comments on commit 224db5e

Please sign in to comment.