Use [RaisesException] for immediate promise rejections in...
Use [RaisesException] for immediate promise rejections in /third_party/blink/renderer/modules/picture_in_picture. 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=beaufort.francois@gmail.com Bug: 1001114 Change-Id: I0d6265ccaccab772bac9e7d2ff111ff111432000 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1786670 Auto-Submit: Jeremy Roman <jbroman@chromium.org> Commit-Queue: François Beaufort <beaufort.francois@gmail.com> Reviewed-by:François Beaufort <beaufort.francois@gmail.com> Cr-Commit-Position: refs/heads/master@{#693843}
Showing
Please register or sign in to comment