f61facfdaf
Creation stack trace points to the place where callback was actually chained, scheduled points where parent promise was resolved.
For async tasks without creation stack (e.g. setTimeout) we continue to use scheduled as creation since usually they are the same.
BUG=v8:6189
R=dgozman@chromium.org
Review-Url: https://codereview.chromium.org/2868493002
Cr-Original-Commit-Position: refs/heads/master@{#45198}
Committed: e118462f18
Review-Url: https://codereview.chromium.org/2868493002
Cr-Commit-Position: refs/heads/master@{#45266}
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 : Promise.then
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
]
|
|
parent : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 47
|
|
functionName :
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
]
|
|
description : Promise.resolve
|
|
}
|
|
}
|
|
|
|
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
|