Consider a hypothetical example :
var r = function (o) {
try { o.a.b }
catch (e){}
};
var o={};
r(o.a.b);
console.log('aaaa');
//TypeError: o.a is undefined
Is there a way to handle this kind of error and displaying "aaaa" nevertheless? Or is this what being called an "uncaught typeerror" that seems to always lead to fail?
Ty for the link, but it was not really the same question that the one mentionned above. I have my own way to test for nested object, my question was more on how it is possible in javascript to handle Type Error outside of the execution process, without disturbing this one, i.e. returning false and that's all. As pointed per Pointy \o/ that is not a possible really, and this is the answer I guess.