File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4004,7 +4004,7 @@ export default class Elysia<
40044004 if ( plugin instanceof Elysia )
40054005 return this . _use ( plugin ) . compile ( )
40064006
4007- if ( plugin . constructor . name === 'Elysia' )
4007+ if ( plugin . constructor ? .name === 'Elysia' )
40084008 return this . _use (
40094009 plugin as unknown as Elysia
40104010 ) . compile ( )
@@ -4015,10 +4015,10 @@ export default class Elysia<
40154015 if ( plugin . default instanceof Elysia )
40164016 return this . _use ( plugin . default )
40174017
4018- if ( plugin . constructor . name === 'Elysia' )
4018+ if ( plugin . constructor ? .name === 'Elysia' )
40194019 return this . _use ( plugin . default )
40204020
4021- if ( plugin . constructor . name === '_Elysia' )
4021+ if ( plugin . constructor ? .name === '_Elysia' )
40224022 return this . _use ( plugin . default )
40234023
40244024 try {
You can’t perform that action at this time.
0 commit comments