-
-
Notifications
You must be signed in to change notification settings - Fork 670
Weird behavior with constructor parameter properties #1225
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
Can confirm |
Issue seems to be that when we compile this.viaThis = this.x we first compile |
This is taking a little longer since I figured that there are even more problems than that, like |
Quick update: So I thought I had a solution for this, but turned out the codegen is so hacky that it doesn't play well with the ARC finalization passes we have in Binaryen right now. Quite the conflict party between ARC, inlining, autoreleases and whatnot due to automatic allocation semantics of ctors in conjunction with the need to also allow |
Binaryen PR that should help: WebAssembly/binaryen#2833 |
This was a weird one to track down. Here’s a reduced reproduction.
Fun fact: If you swap the assignments in the constructor, both return 4 🤷
The text was updated successfully, but these errors were encountered: