我收到代码错误“RuntimeError: unreachable in rustwasm”
错误信息:
Uncaught (in promise) RuntimeError: unreachable
at __rust_start_panic (http://127.0.0.1:8080/wasm_bg.wasm:wasm-function[346]:0x274ec)
at rust_panic (http://127.0.0.1:8080/wasm_bg.wasm:wasm-function[254]:0x26d0b)
at std::panicking::rust_panic_with_hook::hb07b303a83b6d242 (http://127.0.0.1:8080/wasm_bg.wasm:wasm-function[168]:0x24a47)
at rust_begin_unwind (http://127.0.0.1:8080/wasm_bg.wasm:wasm-function[228]:0x267ed)
at core::panicking::panic_fmt::h62f7e605cdf65d83
at core::panicking::panic_bounds_check::ha440f41d0e4eca5f
at virtualdom::parseNode::h9ba47b7b20126d66
at run ()
at init ()
Run Code Online (Sandbox Code Playgroud)
我有以下问题?
parseNode函数吗?dm.children[i]溢出了吗?或者在 wasm 后台运行时删除了一些函数?panic::set_hook(Box::new(console_error_panic_hook::hook));但没有多大帮助!我应该如何调试此类错误?