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

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

Issue 1243503007: fixes #221, initial sync*, async, async* implementation (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/_operations.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 92560393f32ffcf0490bcb433d3d3c168624cdea..9433e1bb38013533211add711425dee61f415127 100644
--- a/lib/runtime/dart/_isolate_helper.js
+++ b/lib/runtime/dart/_isolate_helper.js
@@ -950,8 +950,9 @@ dart_library.library('dart/_isolate_helper', null, /* Imports */[
return IsolateNatives.computeThisScriptD8();
if (dart.notNull(_js_helper.Primitives.isJsshell))
return IsolateNatives.computeThisScriptJsshell();
- if (dart.notNull(exports._globalState.isWorker))
+ if (exports._globalState != null && dart.notNull(exports._globalState.isWorker)) {
return IsolateNatives.computeThisScriptFromTrace();
+ }
return null;
}
static computeThisScriptJsshell() {
« no previous file with comments | « lib/runtime/_operations.js ('k') | lib/runtime/dart/_js_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698