Description[Extenisons Bindings] Don't throw unchecked errors; add console errors
Throwing an unchecked runtime.lastError results in an uncaught
exception, which can prevent future JS from properly running in
somewhat unpredictable ways. These errors should be logged as console
errors, rather than being thrown as exceptions.
Add tests to a) check errors being logged and b) check that chaining
API calls and callbacks works even when there are uncheked last errors.
BUG=653596
Review-Url: https://codereview.chromium.org/2819683002
Cr-Commit-Position: refs/heads/master@{#465740}
Committed: https://chromium.googlesource.com/chromium/src/+/baa379d2816ac03540dc343fa20d6f0ba9791475
Patch Set 1 #Patch Set 2 : . #
Total comments: 12
Patch Set 3 : jbroman's #Messages
Total messages: 21 (14 generated)
|