Dart editor goes into infinite loop if an exception is thrown in toString() #12368
Labels
P1
A high priority bug; for example, a single project is unusable or has many test failures
Milestone
This issue was originally filed by [email protected]
This program causes the Dart editor to go into an infinite loop.
class Foo {
String toString() { throw new Exception("oops"); }
}
void main() {
new Foo().toString();
}
I'm guessing it's because the debugger itself calls toString(), which causes another exception, dropping the program into the debugger again.
Dart Editor version 0.6.15_r25822
Dart SDK version 0.6.15.3_r25822
The text was updated successfully, but these errors were encountered: