-
Notifications
You must be signed in to change notification settings - Fork 106
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
Metadata placement inconsistency with replaced classes #429
Comments
|
That was the intent of the design, if I made a mistake in the spec would definitely appreciate your help in pointing it out. I will be rereviewing and doing another round of refinement in the near future, but am currently focused on implementing the Babel plugin. The outcome of #329 was that classes would continue to be applied before static class fields are applied. If decorators wish to run code after the class has been fully constructed and static class fields had been assigned, then they could use |
Closing: intended design should not exhibit this behavior. Added a comment in the PR. |
Metadata on the prototype is assigned prior to replacement classes whereas static metadata is after. While this should mostly be OK due to metadata inheritance (depending on shadowing), it could cause problems for direct references to the original class, for example from those made within the class itself.
The text was updated successfully, but these errors were encountered: