Use [RaisesException] for immediate promise rejections in /third_party/blink/renderer/modules/hid.
The bindings layer implicitly converts thrown exceptions in promise-returning functions to promise rejections, and using ExceptionState makes this more similar to ordinarily throwing exceptions, notably by including the auto- generated exception context that makes it easier to see what IDL operation caused an exception to be thrown. This CL was uploaded by git cl split. R=reillyg@chromium.org Bug: 1001114 Change-Id: I6126a5183b44f492dd91a2f74a07b063e87ca0d1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1787351 Commit-Queue: Jeremy Roman <jbroman@chromium.org> Reviewed-by:Reilly Grant <reillyg@chromium.org> Auto-Submit: Jeremy Roman <jbroman@chromium.org> Cr-Commit-Position: refs/heads/master@{#694302}
Showing
Please register or sign in to comment