diff --git a/lib/events-metadata.accessor.ts b/lib/events-metadata.accessor.ts index 66269bb3..3d1b3f4b 100644 --- a/lib/events-metadata.accessor.ts +++ b/lib/events-metadata.accessor.ts @@ -13,7 +13,7 @@ export class EventsMetadataAccessor { // Circumvent a crash that comes from reflect-metadata if it is // given a non-object non-function target to reflect upon. if ( - target === undefined || + !target || (typeof target !== 'function' && typeof target !== 'object') ) { return undefined;