2018-03-19 01:18:24 +00:00
|
|
|
Tests Runtime.terminateExecution
|
|
|
|
Terminate first evaluation (it forces injected-script-source compilation)
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
error : {
|
|
|
|
code : -32000
|
2018-10-31 16:16:39 +00:00
|
|
|
message : Execution was terminated
|
2018-03-19 01:18:24 +00:00
|
|
|
}
|
|
|
|
id : <messageId>
|
|
|
|
}
|
|
|
|
Checks that we reset termination after evaluation
|
|
|
|
{
|
2018-05-31 18:51:49 +00:00
|
|
|
description : 42
|
2018-03-19 01:18:24 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|