2020-04-28 13:05:17 +00:00
|
|
|
Test scope inspection and stepping after a trap.
|
2021-01-05 05:51:52 +00:00
|
|
|
|
|
|
|
Running test: test
|
2020-04-28 13:05:17 +00:00
|
|
|
Instantiating.
|
|
|
|
Calling div function.
|
|
|
|
Paused at:
|
|
|
|
--- 0 ---
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/a9a86c5e byte offset 46: Wasm opcode 0x6d (kExprI32DivS)
|
2021-05-07 05:38:20 +00:00
|
|
|
scope at $div (0:46):
|
2021-02-08 15:39:00 +00:00
|
|
|
$a: 1 (i32)
|
|
|
|
$b: 0 (i32)
|
|
|
|
$unused: 4711 (i32)
|
|
|
|
$local_zero: 0 (i32)
|
|
|
|
$local_const_11: 11 (i32)
|
2020-04-28 13:05:17 +00:00
|
|
|
--- 1 ---
|
|
|
|
try {
|
|
|
|
instance.exports.#div(1, 0, 4711); // traps (div by zero)
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
--- 2 ---
|
|
|
|
#call_div()
|
|
|
|
|
|
|
|
-------------
|
|
|
|
-> stepInto
|
|
|
|
Paused at:
|
|
|
|
--- 0 ---
|
|
|
|
} catch (e) {
|
|
|
|
#e.stack; // step target of first pause
|
|
|
|
}
|
|
|
|
|
|
|
|
--- 1 ---
|
|
|
|
#call_div()
|
|
|
|
|
|
|
|
-------------
|
|
|
|
-> resume
|
|
|
|
Paused at:
|
|
|
|
--- 0 ---
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/a9a86c5e byte offset 46: Wasm opcode 0x6d (kExprI32DivS)
|
2021-05-07 05:38:20 +00:00
|
|
|
scope at $div (0:46):
|
2021-02-08 15:39:00 +00:00
|
|
|
$a: -2147483648 (i32)
|
|
|
|
$b: -1 (i32)
|
|
|
|
$unused: 4711 (i32)
|
|
|
|
$local_zero: 0 (i32)
|
|
|
|
$local_const_11: 11 (i32)
|
2020-04-28 13:05:17 +00:00
|
|
|
--- 1 ---
|
|
|
|
try {
|
|
|
|
instance.exports.#div(0x80000000, -1, 4711); // traps (unrepresentable)
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
--- 2 ---
|
|
|
|
#call_div()
|
|
|
|
|
|
|
|
-------------
|
|
|
|
-> stepInto
|
|
|
|
Paused at:
|
|
|
|
--- 0 ---
|
|
|
|
} catch (e) {
|
|
|
|
#e.stack; // step target of second pause
|
|
|
|
}
|
|
|
|
|
|
|
|
--- 1 ---
|
|
|
|
#call_div()
|
|
|
|
|
|
|
|
-------------
|
|
|
|
-> resume
|