@@ -268,12 +268,13 @@ return JSON.stringify({
268268 // json+ld
269269 try {
270270 var content = JSON . parse ( node . textContent ) ;
271- var contentLoop = [ ] ;
272271 if ( content instanceof Object || content instanceof Array ) {
273272 // nested lookup
274273 nestedLookup ( content , 0 ) ;
275274 }
276- } catch ( e ) { }
275+ } catch ( e ) {
276+ // continue regardless of error
277+ }
277278 }
278279 }
279280 }
@@ -313,7 +314,9 @@ return JSON.stringify({
313314 } else {
314315 navigateHash ++ ;
315316 }
316- } catch ( e ) { }
317+ } catch ( e ) {
318+ // continue regardless of error
319+ }
317320 }
318321 } else if ( document . location . hostname !== link . hostname ) {
319322 external ++ ;
@@ -373,7 +376,6 @@ return JSON.stringify({
373376 wordsCount = 0 ;
374377 wordElements = 0 ;
375378 var n ,
376- nodes = [ ] ,
377379 walk = document . createTreeWalker (
378380 body ,
379381 NodeFilter . SHOW_ALL ,
@@ -471,7 +473,7 @@ return JSON.stringify({
471473 } ;
472474 } ) ( ) ,
473475 '09.27' : ( ( ) => {
474- // Returns a JSON array of nodes with a tabindex and their key/value attributes.
476+ // Returns a JSON array of nodes with a tabindex and their key/value attributes.
475477 // We acknowledge that attribute selectors are expensive to query.
476478 var nodes = document . querySelectorAll ( 'body [tabindex]' ) ;
477479 return parseNodes ( nodes , {
@@ -569,10 +571,6 @@ return JSON.stringify({
569571 max_prop_length : 255 ,
570572 } ;
571573
572- const parsed_pictures = parseNodes ( pictures , filter_options ) ;
573- const parsed_imgs = parseNodes ( imgs , filter_options ) ;
574- const parsed_sources = parseNodes ( sources , filter_options ) ;
575-
576574 return {
577575 pictures : parseNodes ( pictures , filter_options ) ,
578576 imgs : parseNodes ( imgs , filter_options ) ,
0 commit comments