diff options
Diffstat (limited to 'test/parallel/test-promises-unhandled-rejections.js')
-rw-r--r-- | test/parallel/test-promises-unhandled-rejections.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-promises-unhandled-rejections.js b/test/parallel/test-promises-unhandled-rejections.js index d336630f7c..93ac186a3b 100644 --- a/test/parallel/test-promises-unhandled-rejections.js +++ b/test/parallel/test-promises-unhandled-rejections.js @@ -681,7 +681,7 @@ asyncTest('Throwing an error inside a rejectionHandled handler goes to' + setTimeout(function() { try { p.catch(function() {}); - } catch (e) { + } catch { done(new Error('fail')); } }, 1); |