mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-17 01:49:41 -05:00
Fixed a regression in serializing setters with non-function declarations in JS files (#55492)
This commit is contained in:
committed by
GitHub
parent
f07077c7ff
commit
fecbae5d2e
@@ -9803,8 +9803,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
}
|
||||
});
|
||||
|
||||
Debug.assert(setter && isFunctionLikeDeclaration(setter));
|
||||
const paramSymbol: Symbol | undefined = getSignatureFromDeclaration(setter).parameters[0];
|
||||
Debug.assert(!!setter);
|
||||
const paramSymbol = isFunctionLikeDeclaration(setter) ? getSignatureFromDeclaration(setter).parameters[0] : undefined;
|
||||
|
||||
result.push(setTextRange(
|
||||
factory.createSetAccessorDeclaration(
|
||||
|
||||
Reference in New Issue
Block a user