()
| 13589 | }; |
| 13590 | |
| 13591 | var requestTimeout = function() { |
| 13592 | // The response is always empty |
| 13593 | // See https://xhr.spec.whatwg.org/#request-error-steps and https://fetch.spec.whatwg.org/#concept-network-error |
| 13594 | completeRequest(callback, -1, null, null, '', 'timeout'); |
| 13595 | }; |
| 13596 | |
| 13597 | xhr.onerror = requestError; |
| 13598 | xhr.ontimeout = requestTimeout; |
nothing calls this directly
no test coverage detected