jin-eld / wasm-bindgen-recursive-use-error

Reproduction of the "recursive use of an object detected" error with Rust and wasm-bindgen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example on what triggers the Uncaught Error: recursive use of an object detected which would lead to unsafe aliasing in rust error with wasm_bindgen

Initial commit will trigger the error, the &mut self in the work function is responsible.

The second commit removes the mut and also comments out modifications to self and the error goes away.

About

Reproduction of the "recursive use of an object detected" error with Rust and wasm-bindgen


Languages

Language:Rust 72.9%Language:HTML 23.0%Language:Makefile 4.1%