Permalink
Browse files

prefix:<+> is smarter now, so shouldn't need to call eval here any mo…

…re; cleaner and probably a little faster.
  • Loading branch information...
1 parent c292476 commit 138468c1c1db0ca32ae90ea42730c3d63548718f @jnthn jnthn committed Nov 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/JSON/Tiny/Actions.pm
View
@@ -22,7 +22,7 @@ method array($/) {
method string($/) {
make join '', $0.list.map({ (.<str> || .<str_escape>).ast });
}
-method value:sym<number>($/) { make eval $/.Str }
+method value:sym<number>($/) { make +$/.Str }
method value:sym<string>($/) { make $<string>.ast }
method value:sym<true>($/) { make Bool::True }
method value:sym<false>($/) { make Bool::False }

0 comments on commit 138468c

Please sign in to comment.