diff --git a/Reflect.ts b/Reflect.ts index b3468b8..2770fe7 100644 --- a/Reflect.ts +++ b/Reflect.ts @@ -1125,8 +1125,6 @@ namespace Reflect { * */ function deleteMetadata(metadataKey: any, target: any, propertyKey?: string | symbol): boolean { - if (!IsObject(target)) throw new TypeError(); - if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey); if (!IsObject(target)) throw new TypeError(); if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey); const provider = GetMetadataProvider(target, propertyKey, /*Create*/ false);