(s string, roundTripOnly bool)
| 902 | } |
| 903 | |
| 904 | func isValidNumberString(s string, roundTripOnly bool) bool { |
| 905 | if s == "" { |
| 906 | return false |
| 907 | } |
| 908 | n := jsnum.FromString(s) |
| 909 | return !n.IsNaN() && !n.IsInf() && (!roundTripOnly || n.String() == s) |
| 910 | } |
| 911 | |
| 912 | func isValidBigIntString(s string, roundTripOnly bool) bool { |
| 913 | if s == "" { |
no test coverage detected