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

Unified Diff: tool/input_sdk/private/isolate_helper.dart

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 | « tool/input_sdk/lib/async/stream_impl.dart ('k') | tool/input_sdk/private/js_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/private/isolate_helper.dart
diff --git a/tool/input_sdk/private/isolate_helper.dart b/tool/input_sdk/private/isolate_helper.dart
index c0d7367acc296a730c307fa714ff9b2505afdb5e..b3e6635483d6a445242207e27e73b89b536f7532 100644
--- a/tool/input_sdk/private/isolate_helper.dart
+++ b/tool/input_sdk/private/isolate_helper.dart
@@ -756,7 +756,9 @@ class IsolateNatives {
if (Primitives.isD8) return computeThisScriptD8();
if (Primitives.isJsshell) return computeThisScriptJsshell();
// A worker has no script tag - so get an url from a stack-trace.
- if (_globalState.isWorker) return computeThisScriptFromTrace();
+ if (_globalState != null && _globalState.isWorker) {
+ return computeThisScriptFromTrace();
+ }
return null;
}
« no previous file with comments | « tool/input_sdk/lib/async/stream_impl.dart ('k') | tool/input_sdk/private/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698