Do any javascript runtimes (browsers, Node, etc.) ever throw uncatchable exceptions? Are any and all exceptions ever encountered in a javascript environment catchable in a try/c
To generalize the other answer - exceptions that are asynchronous are generally are impossible to handle without the "bug guns" designed especially to handle them - that is domains and the process "uncaughtException"
event in node and onerror
in the browser.
The simplest way to get such an error would be:
setTimeout(function(){
throw "Catch me if you can!";
});
This is what you're seeing in the http.get({host:host, port:80}, console.error);
in the example of the other answer.