| 371 | */ |
| 372 | const createSafeIterator = (factory, next) => { |
| 373 | class SafeIterator { |
| 374 | constructor(iterable) { |
| 375 | this._iterator = factory(iterable); |
| 376 | } |
| 377 | next() { |
| 378 | return next(this._iterator); |
| 379 | } |
| 380 | [SymbolIterator]() { |
| 381 | return this; |
| 382 | } |
| 383 | } |
| 384 | ObjectSetPrototypeOf(SafeIterator.prototype, null); |
| 385 | ObjectFreeze(SafeIterator.prototype); |
| 386 | ObjectFreeze(SafeIterator); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…