DescriptionAdd an error listener on isolates.
While any error listener is attached to an isolate, uncaught errors are reported to the listener through his supplied sendPort.
The current format for the error is
[error.toString(), stack == null ? null : stack.toString()]
This is wrapped on the receiving side.
The isolate exposes the errors as a broadcast stream of error events.
R=floitsch@google.com
Committed: https://code.google.com/p/dart/source/detail?r=36290
Patch Set 1 #
Total comments: 2
Patch Set 2 : New implementation. Works. #
Total comments: 15
Patch Set 3 : Include test in CL. Remove debug print. #Patch Set 4 : Rewrite. Now catch all in IsolateContext.eval #
Total comments: 8
Patch Set 5 : Typo #Patch Set 6 : Typo too. #Patch Set 7 : Mark isolate_throws_test/01 failing. The test is wrong, and we should remove it (In another CL). #
Messages
Total messages: 13 (0 generated)
|