Skip to content

Commit c8cfff7

Browse files
author
Mohsen Azimi
committed
make it a getter so tests pass
1 parent 00f3de5 commit c8cfff7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/WebpackError.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@
77
module.exports = class WebpackError extends Error {
88
constructor(message) {
99
super(message);
10-
this.name = 'WebpackError';
10+
1111
this.message = message;
1212
Error.captureStackTrace(this, this.constructor);
13-
14-
/** @type {string} */
15-
this.details = undefined;
1613
}
1714

15+
get details() {}
16+
1817
inspect() {
1918
return this.stack + (this.details ? `\n${this.details}` : "");
2019
}

0 commit comments

Comments
 (0)