09674b9283
This is a reland of part of https://chromium-review.googlesource.com/c/v8/v8/+/1397664. It drops the explicit fni_.Infer() call after parsing arrow functions. We'll want to avoid inferring if the arrow function is an argument to a function call. It also avoids adding the single argument of "name => " to the inferred name. Bug: chromium:916975 Change-Id: I96a934408113483d73eba14073fe21e8cfe2ada6 Reviewed-on: https://chromium-review.googlesource.com/c/1397665 Commit-Queue: Toon Verwaest <verwaest@chromium.org> Reviewed-by: Maya Lekova <mslekova@chromium.org> Cr-Commit-Position: refs/heads/master@{#58613}
549 lines
18 KiB
Plaintext
549 lines
18 KiB
Plaintext
Tests how async promise chains behave when reaching the limit of stacks
|
|
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 : 14
|
|
functionName : asyncCall
|
|
lineNumber : 2
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
[1] : {
|
|
columnNumber : 33
|
|
functionName :
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
]
|
|
parent : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 22
|
|
functionName : asyncCall
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
[1] : {
|
|
columnNumber : 33
|
|
functionName :
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
]
|
|
description : Promise.then
|
|
parent : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 22
|
|
functionName : asyncCall
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
[1] : {
|
|
columnNumber : 33
|
|
functionName :
|
|
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
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 : 14
|
|
functionName : asyncCall
|
|
lineNumber : 2
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
[1] : {
|
|
columnNumber : 33
|
|
functionName :
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
]
|
|
parent : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 22
|
|
functionName : asyncCall
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
[1] : {
|
|
columnNumber : 33
|
|
functionName :
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
]
|
|
description : Promise.then
|
|
parent : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 22
|
|
functionName : asyncCall
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
[1] : {
|
|
columnNumber : 33
|
|
functionName :
|
|
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
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 : 14
|
|
functionName : asyncCall
|
|
lineNumber : 2
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
[1] : {
|
|
columnNumber : 33
|
|
functionName :
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
]
|
|
parent : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 22
|
|
functionName : asyncCall
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
[1] : {
|
|
columnNumber : 33
|
|
functionName :
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
]
|
|
description : Promise.then
|
|
parent : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 22
|
|
functionName : asyncCall
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
[1] : {
|
|
columnNumber : 33
|
|
functionName :
|
|
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
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 : 14
|
|
functionName : asyncCall
|
|
lineNumber : 2
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
[1] : {
|
|
columnNumber : 33
|
|
functionName :
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
]
|
|
parent : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 22
|
|
functionName : asyncCall
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
[1] : {
|
|
columnNumber : 33
|
|
functionName :
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
]
|
|
description : Promise.then
|
|
parent : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 22
|
|
functionName : asyncCall
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
[1] : {
|
|
columnNumber : 33
|
|
functionName :
|
|
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
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 : 14
|
|
functionName : asyncCall
|
|
lineNumber : 2
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
[1] : {
|
|
columnNumber : 33
|
|
functionName :
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
]
|
|
parent : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 22
|
|
functionName : asyncCall
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
[1] : {
|
|
columnNumber : 33
|
|
functionName :
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
]
|
|
description : Promise.then
|
|
parent : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 22
|
|
functionName : asyncCall
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
[1] : {
|
|
columnNumber : 33
|
|
functionName :
|
|
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
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 : 14
|
|
functionName : asyncCall
|
|
lineNumber : 2
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
[1] : {
|
|
columnNumber : 33
|
|
functionName :
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
]
|
|
parent : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 22
|
|
functionName : asyncCall
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
[1] : {
|
|
columnNumber : 33
|
|
functionName :
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
]
|
|
description : Promise.then
|
|
parent : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 22
|
|
functionName : asyncCall
|
|
lineNumber : 5
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
[1] : {
|
|
columnNumber : 33
|
|
functionName :
|
|
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
timestamp : <timestamp>
|
|
type : trace
|
|
}
|
|
}
|