-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix: add this option to context.ignore #4842
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
Conversation
✅ Deploy Preview for rollupjs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
fac234e to
5bbd347
Compare
Codecov Report
@@ Coverage Diff @@
## master #4842 +/- ##
=======================================
Coverage 98.99% 98.99%
=======================================
Files 219 219
Lines 7883 7887 +4
Branches 2184 2184
=======================================
+ Hits 7804 7808 +4
Misses 26 26
Partials 53 53
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
514b757 to
4333e4e
Compare
Thank you for your contribution! ❤️You can try out this pull request locally by installing Rollup via npm install TrickyPi/rollup#fix/this-in-constructoror load it into the REPL: |
|
I think this is a good idea, but there are some edge cases this will not handle correctly. E.g. when the constructor first defines a setter: For functions, this should be handled the the |
|
Thanks for your review! There are many things that need to be done to complete this pr, it's a bit complicated 😢. |
9b673a3 to
9e01b3a
Compare
|
I looked at little more into this and pushed a fix to your branch that solves all issues. Even the example with the setter is working, though that was actually broken on master as well. |
9e01b3a to
2023d74
Compare
|
You are awesome! I tweaked the test description a bit. |
|
This PR has been released as part of [email protected]. You can test it via |
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
resolves #4764
Description
This PR only considers the assignment to the properties of this in the class constructor, and does not work for the following case.