On 11/24/14, 4:40 AM, Philipp Kewisch wrote:
Personally I'd prefer if the JS component could just throw and not have
to use Components.returnCode at all, isn't there a way the caller can
catch the exception without it being logged?
There is. The question is _when_ it should do this. Consider this
function in a JS component:
f: function(arg) {
arg.snorp();
throw Components.results.NS_ERROR_UNEXPECTED;
}
Should this log anything when "arg" has no property named "snorp"? Why
or why not?
-Boris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform