It's bad practice to throw an exception if it expects a `JsSuccess` or a `JsError`.