Is it possible to wrap functions inside a try-catch block? It appears to not work for the first function, but would it work for the prototype function declared that way?
Example:
try {
function MyFunction1() {
//function code here
}
MyFunction1.prototype.getValue = function() {
//more code here
}
} catch (e) {
//error handling here
}