javascript - How can I catch JS exceptions from async functions I don't control? -


i know using try..catch async functions doesn't work, , advice i've read suggests using inside passed callback.

however, without control on async function throws exception, can 1 catch it? in example it's chrome.bookmarks.create, fails on edge cases.

in chrome extensions, there 3 possible ways of catching asynchronous errors:


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -