mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-17 14:31:45 +03:00
f9cd329b14
Fixes #776
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,
|
|
});
|