Skip to content

Commit bfcc334

Browse files
committed
Upstream cl/419590950
1 parent 820ea2f commit bfcc334

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/custom-elements/ts_src/CustomElementInternals.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export default class CustomElementInternals {
280280
if (definition) {
281281
this._upgradeAnElement(element, definition);
282282
}
283-
} catch (e) {
283+
} catch (e: any) {
284284
this.reportTheException(e);
285285
}
286286
}
@@ -340,7 +340,7 @@ export default class CustomElementInternals {
340340
if (definition.connectedCallback) {
341341
try {
342342
definition.connectedCallback.call(element);
343-
} catch (e) {
343+
} catch (e: any) {
344344
this.reportTheException(e);
345345
}
346346
}
@@ -351,7 +351,7 @@ export default class CustomElementInternals {
351351
if (definition.disconnectedCallback) {
352352
try {
353353
definition.disconnectedCallback.call(element);
354-
} catch (e) {
354+
} catch (e: any) {
355355
this.reportTheException(e);
356356
}
357357
}
@@ -377,7 +377,7 @@ export default class CustomElementInternals {
377377
newValue,
378378
namespace
379379
);
380-
} catch (e) {
380+
} catch (e: any) {
381381
this.reportTheException(e);
382382
}
383383
}
@@ -507,7 +507,7 @@ export default class CustomElementInternals {
507507
}
508508

509509
return result;
510-
} catch (e) {
510+
} catch (e: any) {
511511
this.reportTheException(e);
512512

513513
// When construction fails, a new HTMLUnknownElement is produced.

packages/custom-elements/ts_src/CustomElementRegistry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export default class CustomElementRegistry {
335335
this._localNameToConstructorGetter.delete(localName);
336336
try {
337337
return this.internal_reifyDefinition(localName, constructorGetter());
338-
} catch (e) {
338+
} catch (e: any) {
339339
this._internals.reportTheException(e);
340340
}
341341
}

0 commit comments

Comments
 (0)