[webkit-dev] Asserting versus throwing in internals and testRunner objects
rniwa at webkit.org
Fri Sep 23 14:25:51 PDT 2016
In https://bugs.webkit.org/show_bug.cgi?id=161919, a question was
raised as to what would be the best practice when one of internals or
testRunner method is called at an undesirable timing or wrong
arguments. The case in question was about calling it on a document
without a frame when the method required a frame.
What would be the desired outcome of making such a method call?
Should we be asserting it and crashing the process? Or should we be
throwing an exception?
- R. Niwa
More information about the webkit-dev