According to https://github.com/mozilla/pdf.js/pull/4851#discussion_r13111493, this should be:
```javascript
]).catch(function (reason) {});
```