From c010a9f5c737f731b027ca1468a971cd4c9be7dc Mon Sep 17 00:00:00 2001 From: Alexey Krupskiy Date: Fri, 25 Mar 2022 10:35:20 +0300 Subject: [PATCH] save request error --- src/001-xml_http_request.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/001-xml_http_request.coffee b/src/001-xml_http_request.coffee index a37a073..6d7fe00 100644 --- a/src/001-xml_http_request.coffee +++ b/src/001-xml_http_request.coffee @@ -608,6 +608,7 @@ class XMLHttpRequest extends XMLHttpRequestEventTarget _onHttpRequestError: (request, error) -> return unless @_request is request + @_error = error @_setError() request.abort() @_setReadyState XMLHttpRequest.DONE