terminate-execution-expected.txt 1.14 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
Tests Runtime.terminateExecution
Terminate first evaluation (it forces injected-script-source compilation)
{
    id : <messageId>
    result : {
    }
}
{
    error : {
        code : -32000
11
        message : Execution was terminated
12 13 14 15 16
    }
    id : <messageId>
}
Checks that we reset termination after evaluation
{
17
    description : 42
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
    type : number
    value : 42
}
{
    id : <messageId>
    result : {
        result : {
            type : undefined
        }
    }
}
Terminate evaluation when injected-script-source already compiled
{
    id : <messageId>
    result : {
    }
}
{
    error : {
        code : -32000
        message : Execution was terminated
    }
    id : <messageId>
}
Terminate script evaluated with v8 API
{
    id : <messageId>
    result : {
    }
}
Terminate chained callback
Pause inside microtask and terminate execution
{
    id : <messageId>
    result : {
    }
}
{
    type : string
    value : separate eval after while(true)
}
{
    id : <messageId>
    result : {
        result : {
            type : undefined
        }
    }
}
67 68 69 70 71 72 73
Terminate execution with pending microtasks
{
    id : <messageId>
    result : {
    }
}