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}
92 lines
2.8 KiB
Plaintext
92 lines
2.8 KiB
Plaintext
Checks that we trim async call chains correctly.
|
|
set async chain depth to 8
|
|
|
|
Running test: testDebuggerPaused
|
|
Run expression 'debugger;' with async chain len: 4
|
|
actual async chain len: 1
|
|
Run expression 'debugger;' with async chain len: 8
|
|
actual async chain len: 1
|
|
Run expression 'debugger;' with async chain len: 9
|
|
actual async chain len: 1
|
|
Run expression 'debugger;' with async chain len: 32
|
|
actual async chain len: 1
|
|
|
|
Running test: testConsoleTrace
|
|
Run expression 'console.trace(42);' with async chain len: 4
|
|
actual async chain len: 1
|
|
Run expression 'console.trace(42);' with async chain len: 8
|
|
actual async chain len: 1
|
|
Run expression 'console.trace(42);' with async chain len: 9
|
|
actual async chain len: 1
|
|
Run expression 'console.trace(42);' with async chain len: 32
|
|
actual async chain len: 1
|
|
|
|
Running test: testDebuggerPausedSetTimeout
|
|
Run expression 'debugger;' with async chain len: 4
|
|
actual async chain len: 4
|
|
Run expression 'debugger;' with async chain len: 8
|
|
actual async chain len: 8
|
|
Run expression 'debugger;' with async chain len: 9
|
|
actual async chain len: 8
|
|
Run expression 'debugger;' with async chain len: 32
|
|
actual async chain len: 8
|
|
|
|
Running test: testConsoleTraceSetTimeout
|
|
Run expression 'console.trace(42);' with async chain len: 4
|
|
actual async chain len: 4
|
|
Run expression 'console.trace(42);' with async chain len: 8
|
|
actual async chain len: 8
|
|
Run expression 'console.trace(42);' with async chain len: 9
|
|
actual async chain len: 8
|
|
Run expression 'console.trace(42);' with async chain len: 32
|
|
actual async chain len: 8
|
|
|
|
Running test: testConsoleTraceWithEmptySync
|
|
{
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 66
|
|
functionName :
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
]
|
|
parent : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 47
|
|
functionName :
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
]
|
|
description : Promise.then
|
|
}
|
|
}
|
|
|
|
Running test: testDebuggerPausedThenableJob
|
|
Run expression 'debugger;' with async chain len: 4
|
|
actual async chain len: 1
|
|
Run expression 'debugger;' with async chain len: 8
|
|
actual async chain len: 1
|
|
Run expression 'debugger;' with async chain len: 9
|
|
actual async chain len: 1
|
|
Run expression 'debugger;' with async chain len: 32
|
|
actual async chain len: 1
|
|
|
|
Running test: testConsoleTraceThenableJob
|
|
Run expression 'console.trace(42);' with async chain len: 4
|
|
actual async chain len: 1
|
|
Run expression 'console.trace(42);' with async chain len: 8
|
|
actual async chain len: 1
|
|
Run expression 'console.trace(42);' with async chain len: 9
|
|
actual async chain len: 1
|
|
Run expression 'console.trace(42);' with async chain len: 32
|
|
actual async chain len: 1
|
|
|
|
Running test: twoConsoleAssert
|
|
actual async chain len: 1
|
|
actual async chain len: 2
|