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

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

Issue 1263593003: restore arrow function bind this workaround (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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/convert.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 d625ecb66afead486c0f6e13793f8eafa852c029..48c5c74ce167a8d43dafab82eef216831641a3ce 100644
--- a/lib/runtime/dart/isolate.js
+++ b/lib/runtime/dart/isolate.js
@@ -147,14 +147,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);
- }), onCancel: dart.fn(() => {
+ }).bind(this)), onCancel: dart.fn((() => {
this.removeErrorListener(port.sendPort);
port.close();
port = null;
- })});
+ }).bind(this))});
return controller.stream;
}
}
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698