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