Skip to content

Commit 729dfce

Browse files
committed
Fix incorrect user defined type guard function in compiler
1 parent a0101c0 commit 729dfce

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/compiler/emitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7084,7 +7084,7 @@ const _super = (function (geti, seti) {
70847084
hoistedVars = [];
70857085
}
70867086

7087-
hoistedVars.push(node.name);
7087+
hoistedVars.push((<ImportEqualsDeclaration>node).name);
70887088
return;
70897089
}
70907090

src/compiler/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ namespace ts {
11781178
return (<ExternalModuleReference>(<ImportEqualsDeclaration>node).moduleReference).expression;
11791179
}
11801180

1181-
export function isInternalModuleImportEqualsDeclaration(node: Node): node is ImportEqualsDeclaration {
1181+
export function isInternalModuleImportEqualsDeclaration(node: Node): boolean {
11821182
return node.kind === SyntaxKind.ImportEqualsDeclaration && (<ImportEqualsDeclaration>node).moduleReference.kind !== SyntaxKind.ExternalModuleReference;
11831183
}
11841184

0 commit comments

Comments
 (0)