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

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
Index: lib/runtime/dart/_isolate_helper.js
diff --git a/lib/runtime/dart/_isolate_helper.js b/lib/runtime/dart/_isolate_helper.js
index 004df072bfe3f3d764c0b354274f9eb8b5a720d5..bec4c8a0190f88dc21bac66a08fcbf57fd07d32c 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() {

Powered by Google App Engine
This is Rietveld 408576698