We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const bar = (target: any, name: any, value: any) => { const parentName = target.constructor.name console.log(parentName) } class a { @bar public foo() { } }
It works. But
const bar = (target: any, name: any, value: any) => { const parentName = target.constructor.name console.log(parentName) // it would be an empty string here!!!!!!!! } const log = (target: any) => {} @log class a { @bar public foo() { } }
these code is ok when compile target was ES5, but missing class name when target was ES6
ES5
ES6
The text was updated successfully, but these errors were encountered:
duplicate of #5386
Sorry, something went wrong.
rbuckton
No branches or pull requests
It works. But
these code is ok when compile target was
ES5
, but missing class name when target wasES6
The text was updated successfully, but these errors were encountered: