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

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

Issue 1034273003: fix for static methods and names banned in strict mode (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/runtime/dart/math.js » ('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 c265704d4b3b189fb7ec3fc4fce854f2e9701579..c6b64f0a0a5cb9ceb9996cb4d6c8fb24dd8bd355 100644
--- a/lib/runtime/dart/isolate.js
+++ b/lib/runtime/dart/isolate.js
@@ -14,6 +14,7 @@ var isolate;
return `IsolateSpawnException: ${this.message}`;
}
}
+ let _currentIsolateCache = Symbol('_currentIsolateCache');
let _pause = Symbol('_pause');
class Isolate extends core.Object {
Isolate(controlPort, opts) {
@@ -24,7 +25,7 @@ var isolate;
this.terminateCapability = terminateCapability;
}
static get current() {
- return _currentIsolateCache;
+ return Isolate[_currentIsolateCache];
}
static spawn(entryPoint, message, opts) {
let paused = opts && 'paused' in opts ? opts.paused : false;
« no previous file with comments | « lib/runtime/dart/core.js ('k') | lib/runtime/dart/math.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698