- Version: 12.13.1 / 13.3.0
- Platform:
Linux lt2.cfware.com 5.3.11-200.fc30.x86_64 #1 SMP Tue Nov 12 19:25:25 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Take the following script:
'use strict';
Promise.reject('rejection 1');
Promise.reject('rejection 2').catch(() => {});
The expected result is an unhandledRejection for rejection 1. This script produces no warnings on node.js 12 or 13.