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

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

Issue 1643523008: fix #43, remove => workaround (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 11 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/_debugger.js ('k') | lib/runtime/dart/_runtime.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_isolate_helper.js
diff --git a/lib/runtime/dart/_isolate_helper.js b/lib/runtime/dart/_isolate_helper.js
index e1af6c506da15e8e5a20cf5777544ef0a503d98c..8dd4459a6d661c868aab084fbaf8a41c3f26cdba 100644
--- a/lib/runtime/dart/_isolate_helper.js
+++ b/lib/runtime/dart/_isolate_helper.js
@@ -1235,11 +1235,11 @@ dart_library.library('dart/_isolate_helper', null, /* Imports */[
isolate.handleControlMessage(msg);
return;
}
- exports._globalState.topEventLoop.enqueue(isolate, dart.fn((() => {
+ exports._globalState.topEventLoop.enqueue(isolate, dart.fn(() => {
if (!dart.notNull(this[_receivePort][_isClosed])) {
this[_receivePort][_add](msg);
}
- }).bind(this)), `receive ${message}`);
+ }), `receive ${message}`);
}
['=='](other) {
return dart.is(other, _NativeJsSendPort) && dart.equals(this[_receivePort], other[_receivePort]);
@@ -1427,9 +1427,9 @@ dart_library.library('dart/_isolate_helper', null, /* Imports */[
this[_handle] = null;
if (dart.notNull(hasTimer())) {
enterJsAsync();
- this[_handle] = self.setInterval(dart.fn((() => {
+ this[_handle] = self.setInterval(dart.fn(() => {
callback(this);
- }).bind(this)), milliseconds);
+ }), milliseconds);
} else {
dart.throw(new core.UnsupportedError("Periodic timer."));
}
« no previous file with comments | « lib/runtime/dart/_debugger.js ('k') | lib/runtime/dart/_runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698