@@ -43,8 +43,8 @@ function send(socket, message, id, callback) {
4343 for ( let i = 0 ; i < messageBuf . length ; i ++ )
4444 messageBuf [ i ] = messageBuf [ i ] ^ ( 1 << ( i % 4 ) ) ;
4545 socket . write (
46- Buffer . concat ( [ wsHeaderBuf . slice ( 0 , maskOffset + 4 ) , messageBuf ] ) ,
47- callback ) ;
46+ Buffer . concat ( [ wsHeaderBuf . slice ( 0 , maskOffset + 4 ) , messageBuf ] ) ,
47+ callback ) ;
4848}
4949
5050function parseWSFrame ( buffer , handler ) {
@@ -65,7 +65,7 @@ function parseWSFrame(buffer, handler) {
6565 if ( buffer . length < bodyOffset + dataLen )
6666 return 0 ;
6767 const message = JSON . parse (
68- buffer . slice ( bodyOffset , bodyOffset + dataLen ) . toString ( 'utf8' ) ) ;
68+ buffer . slice ( bodyOffset , bodyOffset + dataLen ) . toString ( 'utf8' ) ) ;
6969 if ( DEBUG )
7070 console . log ( '[received]' , JSON . stringify ( message ) ) ;
7171 handler ( message ) ;
@@ -214,7 +214,7 @@ TestSession.prototype.sendInspectorCommands = function(commands) {
214214 this . sendAll_ ( commands , ( ) => {
215215 timeoutId = setTimeout ( ( ) => {
216216 common . fail ( `Messages without response: ${
217- Object . keys ( this . messages_ ) . join ( ', ' ) } `) ;
217+ Object . keys ( this . messages_ ) . join ( ', ' ) } `) ;
218218 } , TIMEOUT ) ;
219219 } ) ;
220220 } ) ;
@@ -237,7 +237,7 @@ TestSession.prototype.expectMessages = function(expects) {
237237 if ( ! ( expects instanceof Array ) ) expects = [ expects ] ;
238238
239239 const callback = this . createCallbackWithTimeout_ (
240- `Matching response was not received:\n${ expects [ 0 ] } ` ) ;
240+ `Matching response was not received:\n${ expects [ 0 ] } ` ) ;
241241 this . messagefilter_ = ( message ) => {
242242 if ( expects [ 0 ] ( message ) )
243243 expects . shift ( ) ;
@@ -251,8 +251,8 @@ TestSession.prototype.expectMessages = function(expects) {
251251
252252TestSession . prototype . expectStderrOutput = function ( regexp ) {
253253 this . harness_ . addStderrFilter (
254- regexp ,
255- this . createCallbackWithTimeout_ ( `Timed out waiting for ${ regexp } ` ) ) ;
254+ regexp ,
255+ this . createCallbackWithTimeout_ ( `Timed out waiting for ${ regexp } ` ) ) ;
256256 return this ;
257257} ;
258258
@@ -293,10 +293,10 @@ TestSession.prototype.disconnect = function(childDone) {
293293
294294TestSession . prototype . testHttpResponse = function ( path , check ) {
295295 return this . enqueue ( ( callback ) =>
296- checkHttpResponse ( this . harness_ . port , path , ( err , response ) => {
297- check . call ( this , err , response ) ;
298- callback ( ) ;
299- } ) ) ;
296+ checkHttpResponse ( this . harness_ . port , path , ( err , response ) => {
297+ check . call ( this , err , response ) ;
298+ callback ( ) ;
299+ } ) ) ;
300300} ;
301301
302302
@@ -310,7 +310,7 @@ function Harness(port, childProcess) {
310310 this . running_ = true ;
311311
312312 childProcess . stdout . on ( 'data' , makeBufferingDataCallback (
313- ( line ) => console . log ( '[out]' , line ) ) ) ;
313+ ( line ) => console . log ( '[out]' , line ) ) ) ;
314314
315315
316316 childProcess . stderr . on ( 'data' , makeBufferingDataCallback ( ( message ) => {
@@ -427,7 +427,7 @@ Harness.prototype.expectShutDown = function(errorCode) {
427427
428428exports . startNodeForInspectorTest = function ( callback ) {
429429 const child = spawn ( process . execPath ,
430- [ '--inspect' , '--debug-brk' , mainScript ] ) ;
430+ [ '--inspect' , '--debug-brk' , mainScript ] ) ;
431431
432432 const timeoutId = timeout ( 'Child process did not start properly' , 4 ) ;
433433
0 commit comments