@@ -288,8 +288,11 @@ export function emitWebIdl(
288288
289289  function  getExtendList ( iName : string ) : string [ ]  { 
290290    const  i  =  allInterfacesMap [ iName ] ; 
291-     if  ( ! i  ||  ! i . extends  ||  i . extends  ===  "Object" )  return  [ ] ; 
292-     else  return  getExtendList ( i . extends ) . concat ( i . extends ) ; 
291+     if  ( ! i  ||  ! i . extends  ||  i . extends  ===  "Object" )  { 
292+       return  [ ] ; 
293+     }  else  { 
294+       return  getExtendList ( i . extends ) . concat ( i . extends ) ; 
295+     } 
293296  } 
294297
295298  function  getImplementList ( iName : string )  { 
@@ -377,8 +380,9 @@ export function emitWebIdl(
377380    if  ( obj . overrideType )  { 
378381      return  obj . nullable  ? makeNullable ( obj . overrideType )  : obj . overrideType ; 
379382    } 
380-     if  ( ! obj . type ) 
383+     if  ( ! obj . type )   { 
381384      throw  new  Error ( "Missing 'type' field in "  +  JSON . stringify ( obj ) ) ; 
385+     } 
382386    let  type  =  convertDomTypeToTsTypeWorker ( obj ,  forReturn ) ; 
383387    if  ( type  ===  "Promise<undefined>" )  { 
384388      type  =  "Promise<void>" ; 
@@ -501,7 +505,9 @@ export function emitWebIdl(
501505      return  objDomType ; 
502506    } 
503507    // Name of a type alias. Just return itself 
504-     if  ( allTypedefsMap [ objDomType ] )  return  objDomType ; 
508+     if  ( allTypedefsMap [ objDomType ] )  { 
509+       return  objDomType ; 
510+     } 
505511
506512    throw  new  Error ( "Unknown DOM type: "  +  objDomType ) ; 
507513  } 
@@ -522,9 +528,15 @@ export function emitWebIdl(
522528  function  nameWithForwardedTypes ( i : Browser . Interface )  { 
523529    const  typeParameters  =  i . typeParameters ; 
524530
525-     if  ( i . overrideThis )  return  i . overrideThis ; 
526-     if  ( ! typeParameters )  return  i . name ; 
527-     if  ( ! typeParameters . length )  return  i . name ; 
531+     if  ( i . overrideThis )  { 
532+       return  i . overrideThis ; 
533+     } 
534+     if  ( ! typeParameters )  { 
535+       return  i . name ; 
536+     } 
537+     if  ( ! typeParameters . length )  { 
538+       return  i . name ; 
539+     } 
528540
529541    return  `${ i . name }  <${ typeParameters . map ( ( t )  =>  t . name ) }  >` ; 
530542  } 
@@ -971,7 +983,9 @@ export function emitWebIdl(
971983      comments . push ( "Available only in secure contexts." ) ; 
972984    } 
973985    if  ( entity . mdnUrl )  { 
974-       if  ( comments . length  >  0 )  comments . push ( "" ) ; 
986+       if  ( comments . length  >  0 )  { 
987+         comments . push ( "" ) ; 
988+       } 
975989      comments . push ( `[MDN Reference](${ entity . mdnUrl }  )` ) ; 
976990    } 
977991
@@ -1384,30 +1398,34 @@ export function emitWebIdl(
13841398            mTypes . length  ===  0  && 
13851399            amTypes . length  ===  1  && 
13861400            pTypes . length  ===  0 
1387-           ) 
1401+           )   { 
13881402            return  amTypes [ 0 ]  ===  sig . type ; 
1403+           } 
13891404          if  ( 
13901405            mTypes . length  ===  1  && 
13911406            amTypes . length  ===  1  && 
13921407            pTypes . length  ===  0 
1393-           ) 
1408+           )   { 
13941409            return  mTypes [ 0 ]  ===  amTypes [ 0 ]  &&  amTypes [ 0 ]  ===  sig . type ; 
1410+           } 
13951411          if  ( 
13961412            mTypes . length  ===  0  && 
13971413            amTypes . length  ===  1  && 
13981414            pTypes . length  ===  1 
1399-           ) 
1415+           )   { 
14001416            return  amTypes [ 0 ]  ===  pTypes [ 0 ]  &&  amTypes [ 0 ]  ===  sig . type ; 
1417+           } 
14011418          if  ( 
14021419            mTypes . length  ===  1  && 
14031420            amTypes . length  ===  1  && 
14041421            pTypes . length  ===  1 
1405-           ) 
1422+           )   { 
14061423            return  ( 
14071424              mTypes [ 0 ]  ===  amTypes [ 0 ]  && 
14081425              amTypes [ 0 ]  ===  pTypes [ 0 ]  && 
14091426              amTypes [ 0 ]  ===  sig . type 
14101427            ) ; 
1428+           } 
14111429        } 
14121430      } 
14131431    } 
@@ -1674,7 +1692,9 @@ export function emitWebIdl(
16741692  } 
16751693
16761694  function  emitSelfIterator ( i : Browser . Interface )  { 
1677-     if  ( ! compilerBehavior . useIteratorObject )  return ; 
1695+     if  ( ! compilerBehavior . useIteratorObject )  { 
1696+       return ; 
1697+     } 
16781698    const  async  =  i . iterator ?. kind  ===  "async_iterable" ; 
16791699    const  name  =  getName ( i ) ; 
16801700    const  iteratorBaseType  =  `${ async  ? "Async"  : "" }  IteratorObject` ; 
@@ -1770,10 +1790,13 @@ export function emitWebIdl(
17701790        isIndexedPropertyGetter , 
17711791      ) ; 
17721792
1773-       if  ( anonymousGetter )  return  anonymousGetter ; 
1774-       else  if  ( i . methods ) 
1793+       if  ( anonymousGetter )  { 
1794+         return  anonymousGetter ; 
1795+       }  else  if  ( i . methods )  { 
17751796        return  mapToArray ( i . methods . method ) . find ( isIndexedPropertyGetter ) ; 
1776-       else  return  undefined ; 
1797+       }  else  { 
1798+         return  undefined ; 
1799+       } 
17771800    } 
17781801
17791802    function  getIteratorSubtypes ( )  { 
0 commit comments