(s String)
| 109 | } |
| 110 | |
| 111 | func (r *Runtime) createStringIterator(s String) Value { |
| 112 | o := &Object{runtime: r} |
| 113 | |
| 114 | si := &stringIterObject{ |
| 115 | reader: &lenientUtf16Decoder{utf16Reader: s.utf16Reader()}, |
| 116 | } |
| 117 | si.class = classObject |
| 118 | si.val = o |
| 119 | si.extensible = true |
| 120 | o.self = si |
| 121 | si.prototype = r.getStringIteratorPrototype() |
| 122 | si.init() |
| 123 | |
| 124 | return o |
| 125 | } |
| 126 | |
| 127 | type stringObject struct { |
| 128 | baseObject |
no test coverage detected