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
Need a warning in case of infinite loop in getter/setter #17309
Comments
This comment was originally written by vincent...@gmail.com OOps i forgot to say (too bad no edit is possible) : |
Better handling of stack overflows. Sad tabs should be avoided. Crashing isn't a valid strategy in a browser. Removed Type-Defect label. |
Added Dartium-Crasher label. |
Added this to the 1.5 milestone. |
Removed this from the 1.6 milestone. |
Removed Oldschool-Milestone-1.6 label. |
For getters specifically there is a lint that can help out |
This issue was originally filed by vincent...@gmail.com
What steps will reproduce the problem?
1.
Make a mistake in a getter/setter pair that will lead to an
infinite loop :
for instance :
int get x => _x ;
int set x (val) { x = val; } // instead of _x = val == >> infinite loop
2.
launch the application.
What is the expected output? What do you see instead?
a warning before the launch
And / OR
a stack overflow exception leading to the faulty line.
What version of the product are you using? On what operating system?
stable build 33014 on Mac OS 10.9.1
The text was updated successfully, but these errors were encountered: