Files
Kmake/deps/v8/test/inspector/debugger/restart-frame/fails-for-resumables-expected.txt
2026-05-26 23:36:42 -07:00

52 lines
1.1 KiB
Plaintext

Checks that restart frame fails for generator or async functions.
Check that an async function cannot be restarted.
Paused at (after evaluation):
(async function asyncFn() {
#debugger;
})();
Pause stack:
asyncFn:2 (canBeRestarted = false)
Restarting function "asyncFn" ...
Failed to restart function "asyncFn":
{
code : -32000
message : Restarting frame failed
}
Check that a generator function cannot be restarted.
Paused at (after evaluation):
yield 10;
#debugger;
yield 20;
Pause stack:
generatorFn:3 (canBeRestarted = false)
Restarting function "generatorFn" ...
Failed to restart function "generatorFn":
{
code : -32000
message : Restarting frame failed
}
Check that a function cannot be restarted when a generator function is on the stack above
Paused at (after evaluation):
function breaker() { #debugger; }
function* genFn() {
Pause stack:
breaker:1 (canBeRestarted = true)
genFn:4 (canBeRestarted = false)
bar:10 (canBeRestarted = false)
Restarting function "bar" ...
Failed to restart function "bar":
{
code : -32000
message : Restarting frame failed
}