Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Unified Diff: test/inspector/debugger/async-for-await-of-promise-stack.js

Issue 2868493002: [inspector] use creation stack trace as parent for async call chains (Closed)
Patch Set: removed DCHECK for now Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/inspector/debugger/async-for-await-of-promise-stack.js
diff --git a/test/inspector/debugger/async-for-await-of-promise-stack.js b/test/inspector/debugger/async-for-await-of-promise-stack.js
index 4e6c0bf15ecdde7bc89562cb0b20111ae5415c4e..2ed886f18e86215f6e64e91562df9bc13b9d844d 100644
--- a/test/inspector/debugger/async-for-await-of-promise-stack.js
+++ b/test/inspector/debugger/async-for-await-of-promise-stack.js
@@ -50,7 +50,7 @@ async function Basic() {
Debugger();
}
}
-
+// TODO(kozyatinskiy): this stack trace is suspicious.
async function UncaughtReject() {
async function loop() {
for await (let x of [Reject(new Error("boop"))]) {
@@ -59,7 +59,7 @@ async function UncaughtReject() {
}
return loop().catch(Debugger);
}
-
+// TODO(kozyatinskiy): this stack trace is suspicious.
async function UncaughtThrow() {
async function loop() {
for await (let x of [Throw(new Error("boop"))]) {
@@ -88,7 +88,7 @@ async function CaughtThrow() {
Debugger(e);
}
}
-
+// TODO(kozyatinskiy): this stack trace is suspicious.
async function UncaughtRejectOnBreak() {
async function loop() {
for await (let x of RejectOnReturn(["0", "1"])) {
@@ -97,7 +97,7 @@ async function UncaughtRejectOnBreak() {
}
return loop().catch(Debugger);
}
-
+// TODO(kozyatinskiy): this stack trace is suspicious.
async function UncaughtThrowOnBreak() {
async function loop() {
for await (let x of ThrowOnReturn(["0", "1"])) {
@@ -106,7 +106,7 @@ async function UncaughtThrowOnBreak() {
}
return loop().catch(Debugger);
}
-
+// TODO(kozyatinskiy): this stack trace is suspicious.
async function CaughtRejectOnBreak() {
try {
for await (let x of RejectOnReturn(["0", "1"])) {
@@ -126,7 +126,7 @@ async function CaughtThrowOnBreak() {
Debugger(e);
}
}
-//# sourceURL=test.js`, 7, 129);
+//# sourceURL=test.js`, 9, 26);
InspectorTest.setupScriptMap();
Protocol.Debugger.onPaused(message => {
« no previous file with comments | « src/inspector/v8-stack-trace-impl.cc ('k') | test/inspector/debugger/async-for-await-of-promise-stack-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698