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() { |