Commit 95723d8
committed
Fix
If the `size` is `nil`, which means the size is unknown:
1. Test with loop but break after 10,000 loops.
2. If the object has more than 10,000 objects, assume it’s an infinite loop.
This is clearly broken for enumerators with more than 10,000 but fixed size. But it works for tests.nil size Enumerator test1 parent 3d0fb3a commit 95723d8
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
291 | 304 | | |
292 | 305 | | |
293 | 306 | | |
| |||
0 commit comments