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