(private buffer: SharedJsonBufferImpl<any>, ptr: number)
| 1498 | private f64: Float64Array; |
| 1499 | |
| 1500 | constructor(private buffer: SharedJsonBufferImpl<any>, ptr: number) { |
| 1501 | buffer.resolvePtr(ptr); |
| 1502 | this.len = buffer.scratchLen; |
| 1503 | this.start = buffer.scratchStart; |
| 1504 | this.u32 = buffer.u32; |
| 1505 | this.f64 = buffer.f64; |
| 1506 | |
| 1507 | // Direct check: Type Array is 6 |
| 1508 | if (this.u32[buffer.scratchPtr >> 2] !== 6) { |
| 1509 | throw new Error("Iterator must be used on an Array"); |
| 1510 | } |
| 1511 | } |
| 1512 | |
| 1513 | [Symbol.iterator]() { |
| 1514 | return this; |
nothing calls this directly
no test coverage detected