mirror of
https://git.proxmox.com/git/rustc
synced 2025-10-21 06:18:29 +00:00
20 lines
493 B
JavaScript
20 lines
493 B
JavaScript
exports.get_iterable = () => ["one", "two", "three"];
|
|
|
|
exports.get_not_iterable = () => new Object;
|
|
|
|
exports.get_symbol_iterator_throws = () => ({
|
|
[Symbol.iterator]: () => { throw new Error("nope"); },
|
|
});
|
|
|
|
exports.get_symbol_iterator_not_function = () => ({
|
|
[Symbol.iterator]: 5,
|
|
});
|
|
|
|
exports.get_symbol_iterator_returns_not_object = () => ({
|
|
[Symbol.iterator]: () => 5,
|
|
});
|
|
|
|
exports.get_symbol_iterator_returns_object_without_next = () => ({
|
|
[Symbol.iterator]: () => new Object,
|
|
});
|