Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ExceptionContext to reject Promises in blink::USBDevice
This change rewrites all of the asynchronous Promise rejection in the USBDevice interface to use the new RejectWithDOMException() and RejectWithSecurityError() methods added to ScriptPromiseResolver so that the DOMExceptions are created using the ExceptionContext from the original call from JavaScript. This will generate better exception messages than creating DOMExceptions with the constructor. This is the final patch in this series updating the USBDevice interface. Change-Id: Ib77509d37a1c2a3111cac2a11d00773b6d22731d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3633248 Reviewed-by: Michael Wilson <mjwilson@chromium.org> Commit-Queue: Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/main@{#1001270}
- Loading branch information