mirror of
https://github.com/nodejs/node.git
synced 2025-05-15 12:45:25 +00:00

PR-URL: https://github.com/nodejs/node/pull/37587 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
67 lines
1.9 KiB
Plaintext
67 lines
1.9 KiB
Plaintext
Test conditional breakpoints in wasm.
|
|
|
|
Running test: test
|
|
Instantiating.
|
|
Waiting for wasm script.
|
|
Got wasm script: wasm://wasm/f00dbc56
|
|
Setting breakpoint at offset 34, condition "false"
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
actualLocation : {
|
|
columnNumber : 34
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
}
|
|
breakpointId : <breakpointId>
|
|
}
|
|
}
|
|
Setting breakpoint at offset 41, condition "true"
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
actualLocation : {
|
|
columnNumber : 41
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
}
|
|
breakpointId : <breakpointId>
|
|
}
|
|
}
|
|
Setting breakpoint at offset 46, condition "$var0.value==3"
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
actualLocation : {
|
|
columnNumber : 46
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
}
|
|
breakpointId : <breakpointId>
|
|
}
|
|
}
|
|
Calling fib(5)
|
|
Script wasm://wasm/f00dbc56 byte offset 41: Wasm opcode 0x0d (kExprBrIf)
|
|
$var0: 5 (i32)
|
|
Script wasm://wasm/f00dbc56 byte offset 41: Wasm opcode 0x0d (kExprBrIf)
|
|
$var0: 4 (i32)
|
|
Script wasm://wasm/f00dbc56 byte offset 41: Wasm opcode 0x0d (kExprBrIf)
|
|
$var0: 3 (i32)
|
|
Script wasm://wasm/f00dbc56 byte offset 46: Wasm opcode 0x10 (kExprCallFunction)
|
|
$var0: 3 (i32)
|
|
Script wasm://wasm/f00dbc56 byte offset 41: Wasm opcode 0x0d (kExprBrIf)
|
|
$var0: 2 (i32)
|
|
Script wasm://wasm/f00dbc56 byte offset 41: Wasm opcode 0x0d (kExprBrIf)
|
|
$var0: 1 (i32)
|
|
Script wasm://wasm/f00dbc56 byte offset 41: Wasm opcode 0x0d (kExprBrIf)
|
|
$var0: 2 (i32)
|
|
Script wasm://wasm/f00dbc56 byte offset 41: Wasm opcode 0x0d (kExprBrIf)
|
|
$var0: 3 (i32)
|
|
Script wasm://wasm/f00dbc56 byte offset 46: Wasm opcode 0x10 (kExprCallFunction)
|
|
$var0: 3 (i32)
|
|
Script wasm://wasm/f00dbc56 byte offset 41: Wasm opcode 0x0d (kExprBrIf)
|
|
$var0: 2 (i32)
|
|
Script wasm://wasm/f00dbc56 byte offset 41: Wasm opcode 0x0d (kExprBrIf)
|
|
$var0: 1 (i32)
|
|
fib returned!
|