()
| 76 | } |
| 77 | |
| 78 | func (i *importedString) ToNumber() Value { |
| 79 | i.ensureScanned() |
| 80 | if i.u != nil { |
| 81 | return i.u.ToNumber() |
| 82 | } |
| 83 | return asciiString(i.s).ToNumber() |
| 84 | } |
| 85 | |
| 86 | func (i *importedString) ToBoolean() bool { |
| 87 | return len(i.s) != 0 |
nothing calls this directly
no test coverage detected