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

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

Issue 1131143002: Angular workarounds (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase onto latest 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 | « lib/runtime/dart/_interceptors.js ('k') | lib/runtime/dart/_js_helper.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 ba1066cb56494887056c1303a35043fde066fc34..96317c4fc91387b3712299aca57f9e79296e98d6 100644
--- a/lib/runtime/dart/_isolate_helper.js
+++ b/lib/runtime/dart/_isolate_helper.js
@@ -412,10 +412,10 @@ var async = dart.import(async);
}
dart.copyProperties(exports, {
get _globalState() {
- return dart.as(init.globalState, _Manager);
+ return dart.as(dart.globalState, _Manager);
},
set _globalState(val) {
- init.globalState = val;
+ dart.globalState = val;
}
});
let _nativeDetectEnvironment = Symbol('_nativeDetectEnvironment');
@@ -778,13 +778,12 @@ var async = dart.import(async);
}
[_runHelper]() {
if (exports.globalWindow != null) {
- // Function next: () → void
let next = (() => {
if (!dart.notNull(this.runIteration()))
return;
- async.Timer.run(next);
+ async.Timer.run(dart.as(next, __CastType2));
}).bind(this);
- next();
+ dart.dcall(next);
} else {
while (this.runIteration()) {
}
@@ -845,7 +844,7 @@ var async = dart.import(async);
let _MainFunctionArgsMessage = dart.typedef('_MainFunctionArgsMessage', () => dart.functionType(dart.dynamic, [dart.dynamic, dart.dynamic]));
class IsolateNatives extends core.Object {
static computeThisScript() {
- let currentScript = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_names.CURRENT_SCRIPT);
+ let currentScript = document.currentScript;
if (currentScript != null) {
return String(currentScript.src);
}
@@ -1382,6 +1381,7 @@ 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 | « lib/runtime/dart/_interceptors.js ('k') | lib/runtime/dart/_js_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698