I need to refactor the treatment of error handling across the Kroll bridge. This mostly refers to syntactic errors, where the developer has passed invalid arguments, etc. Currently the Obj-C library is doing empty return; statements with most methods returning void vs. allowing for a return across the Kroll bridge that could indicate a syntactic error, etc.
Also need to look at the JavaScript side to throw new Error() versus return false; in a number of areas.
I need to refactor the treatment of error handling across the Kroll bridge. This mostly refers to syntactic errors, where the developer has passed invalid arguments, etc. Currently the Obj-C library is doing empty
return;
statements with most methods returningvoid
vs. allowing for a return across the Kroll bridge that could indicate a syntactic error, etc.Also need to look at the JavaScript side to
throw new Error()
versusreturn false;
in a number of areas.