File tree 1 file changed +2
-5
lines changed
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");
12
12
module . exports = class WebpackError extends Error {
13
13
constructor (
14
14
message ,
15
- options = Object . create ( {
15
+ options = {
16
16
category : "error" ,
17
17
// NOTE: went with a more semantic structure here, even though it
18
18
// deviates from other similar structures in webpack
19
19
column : { end : 0 , start : 0 } ,
20
20
line : { end : 0 , start : 0 }
21
- } )
21
+ }
22
22
) {
23
23
// TODO: enable message assertion during construction in a commit to follow
24
24
// if (!message) {
@@ -50,9 +50,6 @@ module.exports = class WebpackError extends Error {
50
50
. split ( "\n" )
51
51
. slice ( 3 , 4 )
52
52
. 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.
56
53
process . emitWarning ( `DeprecationWarning: ${ message } \n${ stack } \n` ) ;
57
54
}
58
55
You can’t perform that action at this time.
0 commit comments