File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 160160 }
161161
162162 function cleanup ( ) {
163- this . disconnect ( function ( ) {
164- if ( typeof exports !== 'undefined' ) {
165- process . exit ( ) ;
166- }
167- } ) ;
163+ this . disconnect ( ) ;
168164 }
169165
170166 function attachCleanup ( self ) {
171167 if ( typeof exports === 'undefined' ) {
172168 window . addEventListener ( 'beforeunload' , self . _cleanupHandler ) ;
173169 } else {
174- process . addListener ( 'SIGINT' , self . _cleanupHandler ) ;
175170 process . addListener ( 'uncaughtException' , self . _cleanupHandler ) ;
176171 }
177172 }
180175 if ( typeof exports === 'undefined' ) {
181176 window . removeEventListener ( 'beforeunload' , self . _cleanupHandler ) ;
182177 } else {
183- process . removeListener ( 'SIGINT' , self . _cleanupHandler ) ;
184178 process . removeListener ( 'uncaughtException' , self . _cleanupHandler ) ;
185179 }
186180 }
You can’t perform that action at this time.
0 commit comments