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 }); |