Open codefrau opened 1 year ago
The handleError() function in rapier_wasm3d_bg.js eats all errors silently, e.g.
handleError()
rapier_wasm3d_bg.js
world.forEachRigidBody(rb => { throw Error("foo"); })
That makes it hard to debug. An easy fix would be adding a console.error() line like
console.error()
function handleError(f, args) { try { return f.apply(this, args); } catch (e) { console.error(e); wasm.__wbindgen_exn_store(addHeapObject(e)); } }
I could not find handleError() in this repo, otherwise I'd have submitted a pull request.
The
handleError()
function inrapier_wasm3d_bg.js
eats all errors silently, e.g.That makes it hard to debug. An easy fix would be adding a
console.error()
line likeI could not find
handleError()
in this repo, otherwise I'd have submitted a pull request.