This commit is contained in:
Philipp Kühn
2020-03-30 13:09:08 +02:00
parent fc5fe7a8ba
commit dde047687a

View File

@@ -12,7 +12,9 @@ export default function magicMethods(clazz: any) {
return return
} }
const exists = name in target || name.startsWith('_') const exists = name in target
|| name.startsWith('_')
|| ['then', 'catch'].includes(name)
if (exists) { if (exists) {
return target[name] return target[name]