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] : {
|
|
|
|
columnNumber : 67
|
|
|
|
functionName : Promise.resolve.then.then.then
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
2017-05-11 19:21:24 +00:00
|
|
|
parent : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 46
|
|
|
|
functionName :
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
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] : {
|
|
|
|
columnNumber : 67
|
|
|
|
functionName : Promise.resolve.then.then.then
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
2017-05-11 19:21:24 +00:00
|
|
|
[0] : {
|
|
|
|
columnNumber : 46
|
|
|
|
functionName :
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
2017-04-28 21:07:01 +00:00
|
|
|
]
|
|
|
|
description : Promise.resolve
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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] : {
|
|
|
|
columnNumber : 67
|
|
|
|
functionName : Promise.resolve.then.then.then
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
2017-05-11 19:21:24 +00:00
|
|
|
[0] : {
|
|
|
|
columnNumber : 46
|
2017-04-28 21:07:01 +00:00
|
|
|
functionName :
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
2017-05-11 19:21:24 +00:00
|
|
|
]
|
|
|
|
description : Promise.resolve
|
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] : {
|
|
|
|
columnNumber : 67
|
|
|
|
functionName : Promise.resolve.then.then.then
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
2017-05-11 19:21:24 +00:00
|
|
|
[0] : {
|
|
|
|
columnNumber : 46
|
|
|
|
functionName :
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
2017-04-28 21:07:01 +00:00
|
|
|
]
|
|
|
|
description : Promise.resolve
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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] : {
|
|
|
|
columnNumber : 67
|
|
|
|
functionName : Promise.resolve.then.then.then
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
2017-05-11 19:21:24 +00:00
|
|
|
[0] : {
|
|
|
|
columnNumber : 46
|
2017-04-28 21:07:01 +00:00
|
|
|
functionName :
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
2017-05-11 19:21:24 +00:00
|
|
|
]
|
|
|
|
description : Promise.resolve
|
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] : {
|
|
|
|
columnNumber : 67
|
|
|
|
functionName : Promise.resolve.then.then.then
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
parent : {
|
|
|
|
callFrames : [
|
2017-05-11 19:21:24 +00:00
|
|
|
[0] : {
|
|
|
|
columnNumber : 46
|
2017-04-28 21:07:01 +00:00
|
|
|
functionName :
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
2017-05-11 19:21:24 +00:00
|
|
|
]
|
|
|
|
description : Promise.resolve
|
2017-04-28 21:07:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
timestamp : <timestamp>
|
|
|
|
type : trace
|
|
|
|
}
|
|
|
|
}
|