bug(wasm): replay move failures are silently ignored in solitaire_wasm #65
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
In
solitaire_wasm/src/lib.rs, when replaying a game move-by-move, moves that return anErrfrom the core logic are silently ignored and the replay continues. This masks desync bugs: the WASM replay diverges from the original game without any indication.Affected file
solitaire_wasm/src/lib.rsFix
When a replayed move fails, log the error via
web_sys::console::error_1and either: