Skip to content

Commit 7afbdfa

Browse files
committed
add ? after symbol
1 parent e1a72ff commit 7afbdfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34252,7 +34252,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
3425234252
const arg0Type = getTypeOfExpression(args[0]);
3425334253
// This is safe even if a different BooleanConstructor is defined in a namespace,
3425434254
// because in that case arg0Type.symbol.escapedName will appear as "__type".
34255-
if (arg0Type.symbol.escapedName === "BooleanConstructor") {
34255+
if (arg0Type.symbol?.escapedName === "BooleanConstructor") {
3425634256
// It is a-priori knowledge the filter returns the same type as the array type
3425734257
// for a signature succeeding when BooleanConstructor is the argument type
3425834258
let returnType = (signature.mapper as undefined | { targets: readonly Type[]; })?.targets[1];

0 commit comments

Comments
 (0)