diff options
Diffstat (limited to 'deps/v8/test/mjsunit/async-hooks/chained-promises.js')
-rw-r--r-- | deps/v8/test/mjsunit/async-hooks/chained-promises.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/async-hooks/chained-promises.js b/deps/v8/test/mjsunit/async-hooks/chained-promises.js index 8b346530eb..a2746dcf0d 100644 --- a/deps/v8/test/mjsunit/async-hooks/chained-promises.js +++ b/deps/v8/test/mjsunit/async-hooks/chained-promises.js @@ -40,9 +40,13 @@ let createdPromise = new Promise(function(resolve) { resolve(42); }).then(function() { - assertEquals(asyncIds.length, 2, 'Exactly 2 promises should be inited'); - assertEquals(triggerIds.length, 2, 'Exactly 2 promises should be inited'); + assertEquals(3, asyncIds.length, 'Exactly 3 promises should be inited'); + assertEquals(3, triggerIds.length, 'Exactly 3 promises should be inited'); assertEquals(triggerIds[1], asyncIds[0], "Parent promise asyncId doesn't correspond to child triggerAsyncId"); + }).catch((err) => { + setTimeout(() => { + throw err; + }, 0); }); })(); |