The loadLayout() function throws an exception at line 342 that cannot be caught by try/catch mechanisms or the error handler.
I suggest that you modify the code to call the error handler instead.
throw "XmlLoader Exception : XML file is malformed or corrupted.";
should be replaced with:
onError("XmlLoader Exception : XML file is malformed or corrupted.");
This will be in the next nightly
will it be fixed in BJS 4.2?
Nope, we won t backport those changes to 4.2. We only hot fix there if it is a browser breaking change related issue.