File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1007,7 +1007,7 @@ namespace ts {
10071007 let seenKnownKeys = 0 ;
10081008 const nameColumn : string [ ] = [ ] ;
10091009 const descriptionColumn : string [ ] = [ ] ;
1010- const knownKesyCount = getOwnKeys ( configurations . compilerOptions ) . length ;
1010+ const knownKeysCount = getOwnKeys ( configurations . compilerOptions ) . length ;
10111011 for ( const category in categorizedOptions ) {
10121012 if ( nameColumn . length !== 0 ) {
10131013 nameColumn . push ( "" ) ;
@@ -1018,7 +1018,7 @@ namespace ts {
10181018 for ( const option of categorizedOptions [ category ] ) {
10191019 let optionName ;
10201020 if ( hasProperty ( configurations . compilerOptions , option . name ) ) {
1021- optionName = `"${ option . name } ": ${ JSON . stringify ( configurations . compilerOptions [ option . name ] ) } ${ ( seenKnownKeys += 1 ) === knownKesyCount ? "" : "," } ` ;
1021+ optionName = `"${ option . name } ": ${ JSON . stringify ( configurations . compilerOptions [ option . name ] ) } ${ ( seenKnownKeys += 1 ) === knownKeysCount ? "" : "," } ` ;
10221022 }
10231023 else {
10241024 optionName = `// "${ option . name } ": ${ JSON . stringify ( getDefaultValueForOption ( option ) ) } ,` ;
Original file line number Diff line number Diff line change @@ -943,7 +943,7 @@ namespace ts {
943943 export function assign < T1 extends MapLike < { } > > ( t : T1 , ...args : any [ ] ) : any ;
944944 export function assign < T1 extends MapLike < { } > > ( t : T1 , ...args : any [ ] ) {
945945 for ( const arg of args ) {
946- for ( const p of getOwnKeys ( arg ) ) {
946+ for ( const p in arg ) if ( hasProperty ( arg , p ) ) {
947947 t [ p ] = arg [ p ] ;
948948 }
949949 }
You can’t perform that action at this time.
0 commit comments