fix bug
This commit is contained in:
@@ -12,8 +12,10 @@ 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]
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user