| Index: lib/runtime/dart/isolate.js
|
| diff --git a/lib/runtime/dart/isolate.js b/lib/runtime/dart/isolate.js
|
| index c5a509a390c9c143146aff040f83c4d55e1418ab..f7737dd82936ba93425966293f53d7f84de2bf1e 100644
|
| --- a/lib/runtime/dart/isolate.js
|
| +++ b/lib/runtime/dart/isolate.js
|
| @@ -136,14 +136,18 @@ var isolate;
|
| let error = new RemoteError(errorDescription, stackDescription);
|
| controller.addError(error, error.stackTrace);
|
| }
|
| - controller = new async.StreamController.broadcast({sync: true, onListen: (() => {
|
| + controller = new async.StreamController.broadcast({
|
| + sync: true,
|
| + onListen: (() => {
|
| port = new RawReceivePort(handleError);
|
| this.addErrorListener(port.sendPort);
|
| - }).bind(this), onCancel: (() => {
|
| + }).bind(this),
|
| + onCancel: (() => {
|
| this.removeErrorListener(port.sendPort);
|
| port.close();
|
| port = null;
|
| - }).bind(this)});
|
| + }).bind(this)
|
| + });
|
| return controller.stream;
|
| }
|
| }
|
|
|