class Decorators {
static PubSub(middleware) {
let decoratorName = arguments.callee.name
return function(target, key, descriptor) {
}
}
}
let PubSub = Decorators.PubSub
class User {
@PubSub(null)
static users() {}
}
我希望decoratorName是PubSub,但它是一个空字符串