Worker stuck in 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.

Steps

  1. Open DevTools
  2. Reload the page
  3. Try to open the worker-stuck.js and observe that it doesn't show any contents
  4. Click
  5. Suddenly the contents of the file appear