@@ -131,7 +131,6 @@ function write(ignoreErrors, stream, string, errorhandler, groupIndent) {
131
131
}
132
132
}
133
133
134
-
135
134
Console . prototype . log = function log ( ...args ) {
136
135
write ( this . _ignoreErrors ,
137
136
this . _stdout ,
@@ -142,13 +141,9 @@ Console.prototype.log = function log(...args) {
142
141
this . _stdoutErrorHandler ,
143
142
this [ kGroupIndent ] ) ;
144
143
} ;
145
-
146
-
147
144
Console . prototype . debug = Console . prototype . log ;
148
-
149
-
150
145
Console . prototype . info = Console . prototype . log ;
151
-
146
+ Console . prototype . dirxml = Console . prototype . log ;
152
147
153
148
Console . prototype . warn = function warn ( ...args ) {
154
149
write ( this . _ignoreErrors ,
@@ -157,11 +152,8 @@ Console.prototype.warn = function warn(...args) {
157
152
this . _stderrErrorHandler ,
158
153
this [ kGroupIndent ] ) ;
159
154
} ;
160
-
161
-
162
155
Console . prototype . error = Console . prototype . warn ;
163
156
164
-
165
157
Console . prototype . dir = function dir ( object , options ) {
166
158
options = Object . assign ( { customInspect : false } , options ) ;
167
159
write ( this . _ignoreErrors ,
@@ -171,17 +163,12 @@ Console.prototype.dir = function dir(object, options) {
171
163
this [ kGroupIndent ] ) ;
172
164
} ;
173
165
174
-
175
- Console . prototype . dirxml = Console . prototype . log ;
176
-
177
-
178
166
Console . prototype . time = function time ( label = 'default' ) {
179
167
// Coerces everything other than Symbol to a string
180
168
label = `${ label } ` ;
181
169
this . _times . set ( label , process . hrtime ( ) ) ;
182
170
} ;
183
171
184
-
185
172
Console . prototype . timeEnd = function timeEnd ( label = 'default' ) {
186
173
// Coerces everything other than Symbol to a string
187
174
label = `${ label } ` ;
@@ -196,7 +183,6 @@ Console.prototype.timeEnd = function timeEnd(label = 'default') {
196
183
this . _times . delete ( label ) ;
197
184
} ;
198
185
199
-
200
186
Console . prototype . trace = function trace ( ...args ) {
201
187
const err = {
202
188
name : 'Trace' ,
@@ -206,7 +192,6 @@ Console.prototype.trace = function trace(...args) {
206
192
this . error ( err . stack ) ;
207
193
} ;
208
194
209
-
210
195
Console . prototype . assert = function assert ( expression , ...args ) {
211
196
if ( ! expression ) {
212
197
require ( 'assert' ) . ok ( false , util . format . apply ( null , args ) ) ;
@@ -256,7 +241,6 @@ Console.prototype.group = function group(...data) {
256
241
}
257
242
this [ kGroupIndent ] += ' ' ;
258
243
} ;
259
-
260
244
Console . prototype . groupCollapsed = Console . prototype . group ;
261
245
262
246
Console . prototype . groupEnd = function groupEnd ( ) {
0 commit comments