Skip to content

Commit 969c556

Browse files
committed
plain object, remove outdated code comment
1 parent a4114f9 commit 969c556

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/WebpackError.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ const meta = Symbol("meta");
1212
module.exports = class WebpackError extends Error {
1313
constructor(
1414
message,
15-
options = Object.create({
15+
options = {
1616
category: "error",
1717
// NOTE: went with a more semantic structure here, even though it
1818
// deviates from other similar structures in webpack
1919
column: { end: 0, start: 0 },
2020
line: { end: 0, start: 0 }
21-
})
21+
}
2222
) {
2323
// TODO: enable message assertion during construction in a commit to follow
2424
// if (!message) {
@@ -50,9 +50,6 @@ module.exports = class WebpackError extends Error {
5050
.split("\n")
5151
.slice(3, 4)
5252
.join("\n");
53-
// use process.stdout to assert the message will be displayed in
54-
// environments where console has been proxied. this mimics node's
55-
// util.deprecate method.
5653
process.emitWarning(`DeprecationWarning: ${message}\n${stack}\n`);
5754
}
5855

0 commit comments

Comments
 (0)