()
| 12955 | }; |
| 12956 | |
| 12957 | var requestTimeout = function() { |
| 12958 | // The response is always empty |
| 12959 | // See https://xhr.spec.whatwg.org/#request-error-steps and https://fetch.spec.whatwg.org/#concept-network-error |
| 12960 | completeRequest(callback, -1, null, null, '', 'timeout'); |
| 12961 | }; |
| 12962 | |
| 12963 | xhr.onerror = requestError; |
| 12964 | xhr.ontimeout = requestTimeout; |
nothing calls this directly
no test coverage detected