| 1 |
exports.get_iterable = () => ["one", "two", "three"]; |
| 2 |
|
| 3 |
exports.get_not_iterable = () => new Object; |
| 4 |
|
| 5 |
exports.get_symbol_iterator_throws = () => ({ |
| 6 |
[Symbol.iterator]: () => { throw new Error("nope"); }, |
| 7 |
}); |
| 8 |
|
| 9 |
exports.get_symbol_iterator_not_function = () => ({ |
| 10 |
[Symbol.iterator]: 5, |
| 11 |
}); |
| 12 |
|
| 13 |
exports.get_symbol_iterator_returns_not_object = () => ({ |
| 14 |
[Symbol.iterator]: () => 5, |
| 15 |
}); |
| 16 |
|
| 17 |
exports.get_symbol_iterator_returns_object_without_next = () => ({ |
| 18 |
[Symbol.iterator]: () => new Object, |
| 19 |
}); |