[Bug] Promise stays in infinite "pending" state
Skroopa opened this issue · comments
Rapier is the physics engine written on Rust and it has JavaScript + Wasm bindings. Bundled JavaScript with embedded Wasm you will find in attachments. So, this file works correctly in all environments like Chrome, d8 utility (from v8 sources) and even Cocos Creator. It must print 0.9972749948501587
as an output (y
position of the falling box). Initialization of physics is init
async function and it never finishes with v8go
and has Pending
state.
Please, confirm.
this is indeed a bug. I ended up with creating my own v8
wrapper with SetWasmAsyncResolvePromiseCallback
implemented (see d8.cc
for details). I will not make PR for this, because as I can see no one will review PR in near future. Closing.