Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Unified Diff: lib/runtime/dart/isolate.js

Issue 1052693004: move => bind this workaround to js_ast (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/runtime/dart/core.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
}
« no previous file with comments | « lib/runtime/dart/core.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698