Skip to content

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

Closed
@DartBot

Description

@DartBot

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

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failures

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions