-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Unable to extend classes which constructors require new
when targeting es5
#11304
New issue
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
Comments
new
when targeting es5new
when targeting es5
I'll note that this doesn't work in 2.0 or in Babel either. |
Hm, seems like there is no way to fix this bug. I think, so |
I think
but I think that would have a pretty bad performance impact. |
Then can you make |
We were hit by this issue: microsoft/TypeScript#11304 Until it's fixed, `AddressBuffer` functionality has been replaced entirely with standalone functions. It was very poor named anyway...
See also #10853 which is closed, even though the issue is not resolved. |
This doesn't seem like an important scenario for modern JS development - folks can either target ES6, or use an alternate transpiler. |
TypeScript Version: master
Code
Expected behavior:
Actual behavior:
The text was updated successfully, but these errors were encountered: