wasm-stepping-out-from-js-expected.txt 915 Bytes
Newer Older
1
Tests stepping out from javascript to a wasm caller
2 3

Running test: test
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
Instantiating.
Running exports.main.
>>> First round
Paused at:
function pauseAlternating() {
  if (pause) #debugger;
  pause = !pause;

Paused at:
Script wasm://wasm/15df010e byte offset 53: Wasm opcode 0x0b (kExprEnd)
Paused at:
instance.exports.main()#

exports.main returned.
After stepping out of the last script, we should stop right at the beginning of the next script.
>>> Second round
Paused at:
#instance.exports.main()

exports.main returned.
The next cycle should work as before (stopping at the "debugger" statement), after stopping at script entry.
>>> Third round
Paused at:
#instance.exports.main()

Paused at:
function pauseAlternating() {
  if (pause) #debugger;
  pause = !pause;

Paused at:
Script wasm://wasm/15df010e byte offset 53: Wasm opcode 0x0b (kExprEnd)
Paused at:
instance.exports.main()#

exports.main returned.