[directory-upload] HTMLInputElement.getFilesAndDirectories should not throw (#20)

HTMLInputElement.getFilesAndDirectories should reject the returned Promise with InvalidStateError rather than throwing that error. Throwing makes writing code that calls that Promise returning methods messy because then()'ing becomes more difficult, especially if you want processing of the 'then' chain to handle the error and continue.

---
Reply to this email directly or view it on GitHub:
https://github.com/WICG/directory-upload/issues/20

Received on Wednesday, 23 September 2015 13:50:19 UTC