()
| 387 | } |
| 388 | |
| 389 | func (s unicodeString) toTrimmedUTF8() string { |
| 390 | if len(s) == 0 { |
| 391 | return "" |
| 392 | } |
| 393 | return strings.Trim(s.String(), parser.WhitespaceChars) |
| 394 | } |
| 395 | |
| 396 | func (s unicodeString) ToNumber() Value { |
| 397 | return asciiString(s.toTrimmedUTF8()).ToNumber() |