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
I'm also currently trying to debug allocator panics but in wee_alloc, and it appeared after upgrading web_sys to 0.3.70. I guess there is something broken in wasm-bindgen. Also, have you tried downgrading rust to 1.77? Cause there is this issue. And another thing worth trying is upgrading wasm-bindgen to 0.2.92, might help according to this, but it didnt work for me.
🐛 Bug description
I have some simple code:
I have verified that the all the calculation components do not panic. The tests for this function (written with
#[wasm_bindgen_test]
) all succeed.The function panics when trying to return
TextStatistics
. This used to work previously, but broke recently.Partial Stacktrace:
Links to #1389
🤔 Expected Behavior
No panic and to return the struct (converted to a class on the JS end).
👟 Steps to reproduce
Copy code as above and just change all of the function calls to floating point constants. Build the rust project and call from JS.
🌍 Your environment
Include the relevant details of your environment.
wasm-pack version: 0.13.0
rustc version: 1.79
Current versions in
Cargo.lock
:The text was updated successfully, but these errors were encountered: