File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ const meta = Symbol("meta");
1212module . 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
You can’t perform that action at this time.
0 commit comments