@@ -134,13 +134,13 @@ class AsyncSession implements DebugSession {
134134 const { add, next } = createCallbackList < Variables > ( complete ) ;
135135
136136 for ( const prop of props ) {
137- if ( prop ? .value ?. objectId && prop ? .value . className === 'Array' ) {
137+ if ( prop . value ?. objectId && prop . value . className === 'Array' ) {
138138 const id = prop . value . objectId ;
139139 add ( vars => this . _unrollArray ( id , prop . name , vars , next ) ) ;
140- } else if ( prop ? .value ?. objectId && prop ? .value ? .className === 'Object' ) {
140+ } else if ( prop . value ?. objectId && prop . value . className === 'Object' ) {
141141 const id = prop . value . objectId ;
142142 add ( vars => this . _unrollObject ( id , prop . name , vars , next ) ) ;
143- } else if ( prop ? .value ) {
143+ } else if ( prop . value ) {
144144 add ( vars => this . _unrollOther ( prop , vars , next ) ) ;
145145 }
146146 }
@@ -177,7 +177,7 @@ class AsyncSession implements DebugSession {
177177 vars [ name ] = props
178178 . filter ( v => v . name !== 'length' && ! isNaN ( parseInt ( v . name , 10 ) ) )
179179 . sort ( ( a , b ) => parseInt ( a . name , 10 ) - parseInt ( b . name , 10 ) )
180- . map ( v => v ? .value ?. value ) ;
180+ . map ( v => v . value ?. value ) ;
181181
182182 next ( vars ) ;
183183 } ) ;
@@ -189,7 +189,7 @@ class AsyncSession implements DebugSession {
189189 private _unrollObject ( objectId : string , name : string , vars : Variables , next : ( obj : Variables ) => void ) : void {
190190 this . _getProperties ( objectId , props => {
191191 vars [ name ] = props
192- . map < [ string , unknown ] > ( v => [ v . name , v ? .value ?. value ] )
192+ . map < [ string , unknown ] > ( v => [ v . name , v . value ?. value ] )
193193 . reduce ( ( obj , [ key , val ] ) => {
194194 obj [ key ] = val ;
195195 return obj ;
@@ -235,7 +235,7 @@ const _localVariablesSyncIntegration = ((
235235 let shouldProcessEvent = false ;
236236
237237 function addLocalVariablesToException ( exception : Exception ) : void {
238- const hash = hashFrames ( exception ? .stacktrace ?. frames ) ;
238+ const hash = hashFrames ( exception . stacktrace ?. frames ) ;
239239
240240 if ( hash === undefined ) {
241241 return ;
@@ -281,7 +281,7 @@ const _localVariablesSyncIntegration = ((
281281 }
282282
283283 function addLocalVariablesToEvent ( event : Event ) : Event {
284- for ( const exception of event ? .exception ?. values || [ ] ) {
284+ for ( const exception of event . exception ?. values || [ ] ) {
285285 addLocalVariablesToException ( exception ) ;
286286 }
287287
@@ -327,7 +327,7 @@ const _localVariablesSyncIntegration = ((
327327 rateLimiter ?.( ) ;
328328
329329 // data.description contains the original error.stack
330- const exceptionHash = hashFromStack ( stackParser , data ? .description ) ;
330+ const exceptionHash = hashFromStack ( stackParser , data . description ) ;
331331
332332 if ( exceptionHash == undefined ) {
333333 complete ( ) ;
@@ -359,7 +359,7 @@ const _localVariablesSyncIntegration = ((
359359 } else {
360360 const id = localScope . object . objectId ;
361361 add ( frames =>
362- session ? .getLocalVariables ( id , vars => {
362+ session . getLocalVariables ( id , vars => {
363363 frames [ i ] = { function : fn , vars } ;
364364 next ( frames ) ;
365365 } ) ,
@@ -385,13 +385,13 @@ const _localVariablesSyncIntegration = ((
385385 max ,
386386 ( ) => {
387387 logger . log ( 'Local variables rate-limit lifted.' ) ;
388- session ? .setPauseOnExceptions ( true ) ;
388+ session . setPauseOnExceptions ( true ) ;
389389 } ,
390390 seconds => {
391391 logger . log (
392392 `Local variables rate-limit exceeded. Disabling capturing of caught exceptions for ${ seconds } seconds.` ,
393393 ) ;
394- session ? .setPauseOnExceptions ( false ) ;
394+ session . setPauseOnExceptions ( false ) ;
395395 } ,
396396 ) ;
397397 }
0 commit comments