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

Unified Diff: test/mjsunit/harmony/async-debug-caught-exception2.js

Issue 2317383002: Async/await Promise dependency graph (Closed)
Patch Set: Only if debug is active Created 4 years, 3 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
« src/parsing/parser.cc ('K') | « src/parsing/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/async-debug-caught-exception2.js
diff --git a/test/mjsunit/harmony/async-debug-caught-exception2.js b/test/mjsunit/harmony/async-debug-caught-exception2.js
index 97f2c14dce10873b5d2ae073a5603833a145b9f1..068778bfa3dec9019855f6d357950ed08ed4d944 100644
--- a/test/mjsunit/harmony/async-debug-caught-exception2.js
+++ b/test/mjsunit/harmony/async-debug-caught-exception2.js
@@ -111,10 +111,8 @@ let lateCatches = [dotCatch, indirectReturnDotCatch, indirectAwaitDotCatch, nest
let throws = [thrower, reject, argThrower, suppressThrow];
let nonthrows = [awaitReturn, scalar, nothing];
-// TODO(littledan): Build a dependency graph to track the relationship between Promises
-// linked by async/await, and enable tests so that
-// let lateThrows = [awaitThrow, constructorThrow, rejectConstructor];
-let lateThrows = [];
+let lateThrows = [awaitThrow, constructorThrow];
+let uncatchables = [rejectConstructor];
let cases = [];
@@ -139,6 +137,13 @@ for (let producer of nonthrows) {
}
}
+for (let producer of uncatchables) {
+ for (let consumer of catches.concat(noncatches, lateCatches)) {
+ cases.push({ producer, consumer, expectedEvents: 1, caught: true });
+ cases.push({ producer, consumer, expectedEvents: 1, caught: false });
+ }
+}
+
for (let producer of lateThrows) {
for (let consumer of lateCatches) {
cases.push({ producer, consumer, expectedEvents: 1, caught: true });
« src/parsing/parser.cc ('K') | « src/parsing/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698