2017-05-19 00:35:45 +00:00
|
|
|
Tests how async promise chains behave when reaching the limit of stacks
|
2017-04-28 21:07:01 +00:00
|
|
|
Checks correctness of promise chains when limit hit
|
|
|
|
inspector.setMaxAsyncTaskStacks(3)
|
|
|
|
Run expression 'console.trace()' with async chain len: 3
|
|
|
|
{
|
|
|
|
method : Runtime.consoleAPICalled
|
|
|
|
params : {
|
|
|
|
args : [
|
|
|
|
[0] : {
|
|
|
|
type : string
|
|
|
|
value : console.trace
|
|
|
|
}
|
|
|
|
]
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
stackTrace : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
2017-11-21 15:42:43 +00:00
|
|
|
columnNumber : 14
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 2
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 33
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2017-11-21 15:42:43 +00:00
|
|
|
lineNumber : 5
|
2017-04-28 21:07:01 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
2017-05-11 19:21:24 +00:00
|
|
|
parent : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
2017-11-21 15:42:43 +00:00
|
|
|
columnNumber : 22
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 33
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2017-11-21 15:42:43 +00:00
|
|
|
lineNumber : 5
|
2017-05-11 19:21:24 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
2017-11-21 15:42:43 +00:00
|
|
|
description : Promise.then
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 22
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 33
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2017-11-21 15:42:43 +00:00
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
description : Promise.then
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 22
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 4
|
|
|
|
functionName :
|
|
|
|
lineNumber : 6
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
description : Promise.then
|
|
|
|
}
|
|
|
|
}
|
2017-05-11 19:21:24 +00:00
|
|
|
}
|
2017-04-28 21:07:01 +00:00
|
|
|
}
|
|
|
|
timestamp : <timestamp>
|
|
|
|
type : trace
|
|
|
|
}
|
|
|
|
}
|
|
|
|
inspector.setMaxAsyncTaskStacks(4)
|
|
|
|
Run expression 'console.trace()' with async chain len: 3
|
|
|
|
{
|
|
|
|
method : Runtime.consoleAPICalled
|
|
|
|
params : {
|
|
|
|
args : [
|
|
|
|
[0] : {
|
|
|
|
type : string
|
|
|
|
value : console.trace
|
|
|
|
}
|
|
|
|
]
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
stackTrace : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
2017-11-21 15:42:43 +00:00
|
|
|
columnNumber : 14
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 2
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 33
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2017-11-21 15:42:43 +00:00
|
|
|
lineNumber : 5
|
2017-04-28 21:07:01 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
2017-05-11 19:21:24 +00:00
|
|
|
[0] : {
|
2017-11-21 15:42:43 +00:00
|
|
|
columnNumber : 22
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 33
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2017-11-21 15:42:43 +00:00
|
|
|
lineNumber : 5
|
2017-05-11 19:21:24 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
2017-04-28 21:07:01 +00:00
|
|
|
]
|
2017-11-21 15:42:43 +00:00
|
|
|
description : Promise.then
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 22
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 33
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2017-11-21 15:42:43 +00:00
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
description : Promise.then
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 22
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 4
|
|
|
|
functionName :
|
|
|
|
lineNumber : 6
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
description : Promise.then
|
|
|
|
}
|
|
|
|
}
|
2017-04-28 21:07:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
timestamp : <timestamp>
|
|
|
|
type : trace
|
|
|
|
}
|
|
|
|
}
|
|
|
|
inspector.setMaxAsyncTaskStacks(5)
|
|
|
|
Run expression 'console.trace()' with async chain len: 3
|
|
|
|
{
|
|
|
|
method : Runtime.consoleAPICalled
|
|
|
|
params : {
|
|
|
|
args : [
|
|
|
|
[0] : {
|
|
|
|
type : string
|
|
|
|
value : console.trace
|
|
|
|
}
|
|
|
|
]
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
stackTrace : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
2017-11-21 15:42:43 +00:00
|
|
|
columnNumber : 14
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 2
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 33
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2017-11-21 15:42:43 +00:00
|
|
|
lineNumber : 5
|
2017-04-28 21:07:01 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
2017-05-11 19:21:24 +00:00
|
|
|
[0] : {
|
2017-11-21 15:42:43 +00:00
|
|
|
columnNumber : 22
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 33
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2017-11-21 15:42:43 +00:00
|
|
|
lineNumber : 5
|
2017-04-28 21:07:01 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
2017-05-11 19:21:24 +00:00
|
|
|
]
|
2017-11-21 15:42:43 +00:00
|
|
|
description : Promise.then
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 22
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 33
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2017-11-21 15:42:43 +00:00
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
description : Promise.then
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 22
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 4
|
|
|
|
functionName :
|
|
|
|
lineNumber : 6
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
description : Promise.then
|
|
|
|
}
|
|
|
|
}
|
2017-04-28 21:07:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
timestamp : <timestamp>
|
|
|
|
type : trace
|
|
|
|
}
|
|
|
|
}
|
|
|
|
inspector.setMaxAsyncTaskStacks(6)
|
|
|
|
Run expression 'console.trace()' with async chain len: 3
|
|
|
|
{
|
|
|
|
method : Runtime.consoleAPICalled
|
|
|
|
params : {
|
|
|
|
args : [
|
|
|
|
[0] : {
|
|
|
|
type : string
|
|
|
|
value : console.trace
|
|
|
|
}
|
|
|
|
]
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
stackTrace : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
2017-11-21 15:42:43 +00:00
|
|
|
columnNumber : 14
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 2
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 33
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2017-11-21 15:42:43 +00:00
|
|
|
lineNumber : 5
|
2017-04-28 21:07:01 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
2017-05-11 19:21:24 +00:00
|
|
|
[0] : {
|
2017-11-21 15:42:43 +00:00
|
|
|
columnNumber : 22
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 33
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2017-11-21 15:42:43 +00:00
|
|
|
lineNumber : 5
|
2017-05-11 19:21:24 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
2017-04-28 21:07:01 +00:00
|
|
|
]
|
2017-11-21 15:42:43 +00:00
|
|
|
description : Promise.then
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 22
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 33
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2017-11-21 15:42:43 +00:00
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
description : Promise.then
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 22
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 4
|
|
|
|
functionName :
|
|
|
|
lineNumber : 6
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
description : Promise.then
|
|
|
|
}
|
|
|
|
}
|
2017-04-28 21:07:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
timestamp : <timestamp>
|
|
|
|
type : trace
|
|
|
|
}
|
|
|
|
}
|
|
|
|
inspector.setMaxAsyncTaskStacks(7)
|
|
|
|
Run expression 'console.trace()' with async chain len: 3
|
|
|
|
{
|
|
|
|
method : Runtime.consoleAPICalled
|
|
|
|
params : {
|
|
|
|
args : [
|
|
|
|
[0] : {
|
|
|
|
type : string
|
|
|
|
value : console.trace
|
|
|
|
}
|
|
|
|
]
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
stackTrace : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
2017-11-21 15:42:43 +00:00
|
|
|
columnNumber : 14
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 2
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 33
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2017-11-21 15:42:43 +00:00
|
|
|
lineNumber : 5
|
2017-04-28 21:07:01 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
2017-05-11 19:21:24 +00:00
|
|
|
[0] : {
|
2017-11-21 15:42:43 +00:00
|
|
|
columnNumber : 22
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 33
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2017-11-21 15:42:43 +00:00
|
|
|
lineNumber : 5
|
2017-04-28 21:07:01 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
2017-05-11 19:21:24 +00:00
|
|
|
]
|
2017-11-21 15:42:43 +00:00
|
|
|
description : Promise.then
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 22
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 33
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2017-11-21 15:42:43 +00:00
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
description : Promise.then
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 22
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 4
|
|
|
|
functionName :
|
|
|
|
lineNumber : 6
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
description : Promise.then
|
|
|
|
}
|
|
|
|
}
|
2017-04-28 21:07:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
timestamp : <timestamp>
|
|
|
|
type : trace
|
|
|
|
}
|
|
|
|
}
|
|
|
|
inspector.setMaxAsyncTaskStacks(8)
|
|
|
|
Run expression 'console.trace()' with async chain len: 3
|
|
|
|
{
|
|
|
|
method : Runtime.consoleAPICalled
|
|
|
|
params : {
|
|
|
|
args : [
|
|
|
|
[0] : {
|
|
|
|
type : string
|
|
|
|
value : console.trace
|
|
|
|
}
|
|
|
|
]
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
stackTrace : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
2017-11-21 15:42:43 +00:00
|
|
|
columnNumber : 14
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 2
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 33
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2017-11-21 15:42:43 +00:00
|
|
|
lineNumber : 5
|
2017-04-28 21:07:01 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
2017-05-11 19:21:24 +00:00
|
|
|
[0] : {
|
2017-11-21 15:42:43 +00:00
|
|
|
columnNumber : 22
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 33
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2017-11-21 15:42:43 +00:00
|
|
|
lineNumber : 5
|
2017-04-28 21:07:01 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
2017-05-11 19:21:24 +00:00
|
|
|
]
|
2017-11-21 15:42:43 +00:00
|
|
|
description : Promise.then
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 22
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 33
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2017-11-21 15:42:43 +00:00
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
description : Promise.then
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 22
|
|
|
|
functionName : asyncCall
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 4
|
|
|
|
functionName :
|
|
|
|
lineNumber : 6
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
description : Promise.then
|
|
|
|
}
|
|
|
|
}
|
2017-04-28 21:07:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
timestamp : <timestamp>
|
|
|
|
type : trace
|
|
|
|
}
|
|
|
|
}
|