/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Jarid Margolin @jaridmargolin
*/
"use strict";

module.exports = class WebpackError extends Error {
	constructor(message) {
		super(message);
		this.name = 'WebpackError';
		this.message = message;
		Error.captureStackTrace(this, this.constructor);

		/** @type {string} */
		this.details = undefined;
	}

	inspect() {
		return this.stack + (this.details ? `\n${this.details}` : "");
	}
};

@@ -214,37 +214,8 @@
 e);%0A
-%09%09this.name = 'WebpackError';
 %0A%09%09t
@@ -292,62 +292,28 @@
 r);%0A
-%0A%09%09/** @type %7Bstring%7D */%0A%09%09this.details = undefined;%0A%09
+%09%7D%0A%0A%09get details() %7B
 %7D%0A%0A%09

make it a getter so tests pass