Index: test/mjsunit/es6/debug-promises-caught-all.js |
diff --git a/test/mjsunit/es6/debug-promises-caught-all.js b/test/mjsunit/es6/debug-promises-caught-all.js |
index 53369e3efc8b6035bede19154e79782e01172369..5189373e1849e1850e4449355002b684d5e3214e 100644 |
--- a/test/mjsunit/es6/debug-promises-caught-all.js |
+++ b/test/mjsunit/es6/debug-promises-caught-all.js |
@@ -6,8 +6,7 @@ |
// Test debug events when we listen to all exceptions and |
// there is a catch handler for the exception thrown in a Promise. |
-// Expectation: |
-// - only the normal Exception debug event is triggered. |
+// We expect a normal Exception debug event to be triggered. |
Debug = debug.Debug; |
@@ -35,10 +34,10 @@ function listener(event, exec_state, event_data, data) { |
// Ignore exceptions during startup in stress runs. |
if (step >= 1) return; |
assertEquals(["resolve", "end main", "throw"], log); |
- assertTrue(event != Debug.DebugEvent.PendingExceptionInPromise); |
if (event == Debug.DebugEvent.Exception) { |
assertEquals("caught", event_data.exception().message); |
assertEquals(undefined, event_data.promise()); |
+ assertFalse(event_data.uncaught()); |
step++; |
} |
} catch (e) { |