[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}
Showing
Please register or sign in to comment