We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6dbbda6 commit 7638952Copy full SHA for 7638952
lib/core/Axios.js
@@ -40,9 +40,9 @@ class Axios {
40
return await this._request(configOrUrl, config);
41
} catch (err) {
42
if (err instanceof Error) {
43
- let dummy;
+ let dummy = {};
44
45
- Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
46
47
// slice off the Error: ... line
48
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
0 commit comments