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

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

Issue 1142553002: remove #177 workaround (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | test/generated_sdk/lib/_internal/compiler/js_lib/isolate_helper.dart » ('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 96317c4fc91387b3712299aca57f9e79296e98d6..653de54d70cc38d103174149e3d36a22ad92d099 100644
--- a/lib/runtime/dart/_isolate_helper.js
+++ b/lib/runtime/dart/_isolate_helper.js
@@ -778,12 +778,13 @@ var async = dart.import(async);
}
[_runHelper]() {
if (exports.globalWindow != null) {
+ // Function next: () → dynamic
let next = (() => {
if (!dart.notNull(this.runIteration()))
return;
- async.Timer.run(dart.as(next, __CastType2));
+ async.Timer.run(next);
}).bind(this);
- dart.dcall(next);
+ next();
} else {
while (this.runIteration()) {
}
@@ -1381,7 +1382,6 @@ var async = dart.import(async);
}
CapabilityImpl[dart.implements] = () => [isolate.Capability];
dart.defineNamedConstructor(CapabilityImpl, '_internal');
- let __CastType2 = dart.typedef('__CastType2', () => dart.functionType(dart.void, []));
// Exports:
exports.enterJsAsync = enterJsAsync;
exports.leaveJsAsync = leaveJsAsync;
« no previous file with comments | « no previous file | test/generated_sdk/lib/_internal/compiler/js_lib/isolate_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698