You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let iterator = match js_sys::try_iter(some_iterable)?.ok_or_else(|| {
"need to pass iterable JS values!".into()
})?;
This is the output I get:
|
86 | let iterator = match js_sys::try_iter(some_iterable)?.ok_or_else(|| {
| -----
| |
| while parsing this match expression
| help: try removing this `match`
87 | "need to pass iterable JS values!".into()
88 | })?;
| ^ expected one of `.`, `?`, `{`, or an operator here
The text was updated successfully, but these errors were encountered:
The following code from the example "Iterating Over Any JavaScript Object" (https://rustwasm.github.io/wasm-bindgen/reference/iterating-over-js-values.html#iterating-over-uanyu-javascript-object-that-implements-the-iterator-protocol) does not compile:
This is the output I get:
The text was updated successfully, but these errors were encountered: