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
This is blocking all the String related bindings in #275.
I haven't dug in very far, but I think the issue is that strings are special cased by wasm-bindgen to always copy in/out of wasm memory, and so we can't reference them as an opaque extern type.
The text was updated successfully, but these errors were encountered:
This line in crates/backend/src/ast.rs makes the assumption that the literal type name of a method in Rust is going to be the same as the type name of a method in Javascript. This is why this is breaking.
In order to fix this, either:
Every method declaration needs to be annotated with the JS type name, e.g. #[wasm_bindgen(method, js_class = String)]
The code in the "backend" crate would need to have some mutable state to keep track of which class methods are being defined for.
This doesn't work, but it should:
This is blocking all the
String
related bindings in #275.I haven't dug in very far, but I think the issue is that strings are special cased by wasm-bindgen to always copy in/out of wasm memory, and so we can't reference them as an opaque extern type.
The text was updated successfully, but these errors were encountered: