File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7888,7 +7888,7 @@ namespace ts {
78887888 // assignable to the JSX Element Type
78897889 const callSignature = getSingleCallSignature(getTypeOfSymbol(sym));
78907890 const callReturnType = callSignature && getReturnTypeOfSignature(callSignature);
7891- let paramType = callReturnType && callSignature && (callSignature.parameters.length === 0 ? emptyObjectType : getTypeOfSymbol(callSignature.parameters[0]));
7891+ let paramType = callReturnType && (callSignature.parameters.length === 0 ? emptyObjectType : getTypeOfSymbol(callSignature.parameters[0]));
78927892 if (callReturnType && isTypeAssignableTo(callReturnType, jsxElementType) && (paramType.flags & TypeFlags.ObjectType)) {
78937893 // Intersect in JSX.IntrinsicAttributes if it exists
78947894 const intrinsicAttributes = getJsxType(JsxNames.IntrinsicAttributes);
Original file line number Diff line number Diff line change @@ -1119,10 +1119,10 @@ namespace Harness {
11191119
11201120 // Files from tests\lib that are requested by "@libFiles"
11211121 if ( options . libFiles ) {
1122- ts . forEach ( options . libFiles . split ( "," ) , filename => {
1123- const libFileName = "tests/lib/" + filename ;
1122+ for ( const fileName of options . libFiles . split ( "," ) ) {
1123+ const libFileName = "tests/lib/" + fileName ;
11241124 includeBuiltFiles . push ( { unitName : libFileName , content : normalizeLineEndings ( IO . readFile ( libFileName ) , newLine ) } ) ;
1125- } ) ;
1125+ }
11261126 }
11271127
11281128
You can’t perform that action at this time.
0 commit comments