Skip to content

Dart editor goes into infinite loop if an exception is thrown in toString() #12368

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

Closed
DartBot opened this issue Aug 11, 2013 · 2 comments
Closed
Assignees
Labels
P1 A high priority bug; for example, a single project is unusable or has many test failures
Milestone

Comments

@DartBot
Copy link

DartBot commented Aug 11, 2013

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

@bwilkerson
Copy link
Member

Set owner to @devoncarew.
Added this to the M6 milestone.
Removed Priority-Unassigned label.
Added Priority-High, Area-Editor, Triaged labels.

@devoncarew
Copy link
Member

Thanks for the report! I believe this was actually fixed earlier in the week, in https://code.google.com/p/dart/source/detail?r=25961. I can't repro the issue now w/ your test case. The fix will be in the next weekly (hopefully Monday) release.


Added Fixed label.

@DartBot DartBot added Type-Defect P1 A high priority bug; for example, a single project is unusable or has many test failures labels Aug 11, 2013
@DartBot DartBot added this to the M6 milestone Aug 11, 2013
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 A high priority bug; for example, a single project is unusable or has many test failures
Projects
None yet
Development

No branches or pull requests

3 participants