Index: lib/runtime/dart/isolate.js |
diff --git a/lib/runtime/dart/isolate.js b/lib/runtime/dart/isolate.js |
index d221567d2f5812aaa277a5c0e2859526dbfbe82f..dbe814e117f7542569bba9860ed6fb9374991179 100644 |
--- a/lib/runtime/dart/isolate.js |
+++ b/lib/runtime/dart/isolate.js |
@@ -144,14 +144,14 @@ var async = dart.import(async); |
controller.addError(error, error.stackTrace); |
}; |
dart.fn(handleError, dart.void, [core.Object]); |
- controller = async.StreamController.broadcast({sync: true, onListen: dart.fn((() => { |
+ controller = async.StreamController.broadcast({sync: true, onListen: dart.fn(() => { |
port = RawReceivePort.new(handleError); |
this.addErrorListener(port.sendPort); |
- }).bind(this)), onCancel: dart.fn((() => { |
+ }), onCancel: dart.fn(() => { |
this.removeErrorListener(port.sendPort); |
port.close(); |
port = null; |
- }).bind(this))}); |
+ })}); |
return controller.stream; |
} |
} |