File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
packages/custom-elements/ts_src Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ export default class CustomElementInternals {
280
280
if ( definition ) {
281
281
this . _upgradeAnElement ( element , definition ) ;
282
282
}
283
- } catch ( e ) {
283
+ } catch ( e : any ) {
284
284
this . reportTheException ( e ) ;
285
285
}
286
286
}
@@ -340,7 +340,7 @@ export default class CustomElementInternals {
340
340
if ( definition . connectedCallback ) {
341
341
try {
342
342
definition . connectedCallback . call ( element ) ;
343
- } catch ( e ) {
343
+ } catch ( e : any ) {
344
344
this . reportTheException ( e ) ;
345
345
}
346
346
}
@@ -351,7 +351,7 @@ export default class CustomElementInternals {
351
351
if ( definition . disconnectedCallback ) {
352
352
try {
353
353
definition . disconnectedCallback . call ( element ) ;
354
- } catch ( e ) {
354
+ } catch ( e : any ) {
355
355
this . reportTheException ( e ) ;
356
356
}
357
357
}
@@ -377,7 +377,7 @@ export default class CustomElementInternals {
377
377
newValue ,
378
378
namespace
379
379
) ;
380
- } catch ( e ) {
380
+ } catch ( e : any ) {
381
381
this . reportTheException ( e ) ;
382
382
}
383
383
}
@@ -507,7 +507,7 @@ export default class CustomElementInternals {
507
507
}
508
508
509
509
return result ;
510
- } catch ( e ) {
510
+ } catch ( e : any ) {
511
511
this . reportTheException ( e ) ;
512
512
513
513
// When construction fails, a new HTMLUnknownElement is produced.
Original file line number Diff line number Diff line change @@ -335,7 +335,7 @@ export default class CustomElementRegistry {
335
335
this . _localNameToConstructorGetter . delete ( localName ) ;
336
336
try {
337
337
return this . internal_reifyDefinition ( localName , constructorGetter ( ) ) ;
338
- } catch ( e ) {
338
+ } catch ( e : any ) {
339
339
this . _internals . reportTheException ( e ) ;
340
340
}
341
341
}
You can’t perform that action at this time.
0 commit comments