Skip to content

Commit 16503f5

Browse files
committed
chore: ensure key exists so that bootstrapping works
1 parent a7ec1ce commit 16503f5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/compiler.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7362,8 +7362,9 @@ export class Compiler extends DiagnosticEmitter {
73627362
let resolver = this.resolver;
73637363
let target = resolver.lookupExpression(targetExpression, this.currentFlow, Type.auto, ReportMode.Swallow);
73647364
if (target && target.kind == ElementKind.Local) {
7365-
let tupleLocals = this.tupleLocalComponents.get(<Local>target);
7366-
if (tupleLocals) {
7365+
let targetLocal = <Local>target;
7366+
if (this.tupleLocalComponents.has(targetLocal)) {
7367+
let tupleLocals = assert(this.tupleLocalComponents.get(targetLocal));
73677368
let index = resolver.resolveTupleElementLiteralIndex(
73687369
expression.elementExpression,
73697370
tupleLocals.length,

0 commit comments

Comments
 (0)