(iterObj *Object, kind iterationKind)
| 46 | } |
| 47 | |
| 48 | func (r *Runtime) createArrayIterator(iterObj *Object, kind iterationKind) Value { |
| 49 | o := &Object{runtime: r} |
| 50 | |
| 51 | ai := &arrayIterObject{ |
| 52 | obj: iterObj, |
| 53 | kind: kind, |
| 54 | } |
| 55 | ai.class = classObject |
| 56 | ai.val = o |
| 57 | ai.extensible = true |
| 58 | o.self = ai |
| 59 | ai.prototype = r.getArrayIteratorPrototype() |
| 60 | ai.init() |
| 61 | |
| 62 | return o |
| 63 | } |
| 64 | |
| 65 | type arrayObject struct { |
| 66 | baseObject |
no test coverage detected