Pause on exception with Wasm

This tests that pausing on (uncaught) exceptions properly leaves the Wasm frames in an inspectable state in the DevTools. This is important, as pause on exception usually becomes important when it's hard to reproduce the problem, and so re-running with additional debugging is usually non-trivial.

Steps

  1. Open DevTools
  2. Turn on Pause on exceptions
  3. Reload this page and click
  4. Observe that the debugger stops in JavaScript function foo on top of the stack, called from Wasm function bar
  5. Now select the frame for bar in the Call Stack and try to inspect the parameter value