Index: lib/runtime/dart/isolate.js |
diff --git a/lib/runtime/dart/isolate.js b/lib/runtime/dart/isolate.js |
index 4f86926938799658bce99d1a4a496b0e79b4c3f9..b1f4e34334584352cd48c86c4592465e0e3179bc 100644 |
--- a/lib/runtime/dart/isolate.js |
+++ b/lib/runtime/dart/isolate.js |
@@ -142,14 +142,14 @@ dart_library.library('dart/isolate', null, /* Imports */[ |
controller.addError(error, error.stackTrace); |
} |
dart.fn(handleError, dart.void, [dart.dynamic]); |
- 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), dart.void, []), onCancel: dart.fn((() => { |
+ }, dart.void, []), onCancel: dart.fn(() => { |
this.removeErrorListener(port.sendPort); |
port.close(); |
port = null; |
- }).bind(this), dart.void, [])}); |
+ }, dart.void, [])}); |
return controller.stream; |
} |
} |