[postTask] Fix error handling for tasks that throw errors
If a postTask task throws an error, the associated promise is rejected with the error. Previously, the error would also be propagated to the global error handler leading to errors being reported even if the promise rejection was handled. This CL suppresses that propagation, resulting in errors being reported to the global error handler only if the rejected promise is not handled. Bug: 979017 Change-Id: Ibbafaf8bd370b05a10f48cb5a122c8411305aadc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2350113Reviewed-by:Nate Chapin <japhet@chromium.org> Commit-Queue: Scott Haseley <shaseley@chromium.org> Cr-Commit-Position: refs/heads/master@{#797048}
Showing
Please register or sign in to comment