Atomics.wait
This tests that a worker that is stuck in Atomics.wait
still has some way to interact
with the DevTools in a meaningful way. The reason why this is important in the scope of WebAssembly
is that pthreads
are implemented in WebAssembly via workers, and these workers are pooled
and essentially just sit inside Atomics.wait
until a new threads is started via
pthread_start
.
worker-stuck.js
and observe that it doesn't show any contents