Content-Length: 271207 | pFad | https://github.com/axios/axios/commit/763895270f7b50c7c780c3c9807ae8635de952cd

3A fix: ios11 breaks when build (#6608) · axios/axios@7638952 · GitHub
Skip to content

Commit 7638952

Browse files
fix: ios11 breaks when build (#6608)
Co-authored-by: Jay <jasonsaayman@gmail.com>
1 parent 6dbbda6 commit 7638952

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/core/Axios.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ class Axios {
4040
return await this._request(configOrUrl, config);
4141
} catch (err) {
4242
if (err instanceof Error) {
43-
let dummy;
43+
let dummy = {};
4444

45-
Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());
45+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
4646

4747
// slice off the Error: ... line
4848
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/axios/axios/commit/763895270f7b50c7c780c3c9807ae8635de952cd

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy