• Jeremy Roman's avatar
    Use [RaisesException] for immediate promise rejections in... · 03b3c884
    Jeremy Roman authored
    Use [RaisesException] for immediate promise rejections in /third_party/blink/renderer/modules/serial.
    
    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: I705359178d1e7c429d48f24f37ca11c28f750d2c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1786934Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
    Commit-Queue: Jeremy Roman <jbroman@chromium.org>
    Auto-Submit: Jeremy Roman <jbroman@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#694276}
    03b3c884
serial.h 2.6 KB