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

Issue 1264543004: dart2js: Make sure '_globalState' is set before calling `computeThisScript`. (Closed)

Created:
5 years, 4 months ago by floitsch
Modified:
5 years, 4 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make sure '_globalState' is set before calling `computeThisScript`. As first line of running `_globalState = new _Manager()` we invoked `_nativeDetectEnvironment()`. However, that one could ending up calling the getter `IsolateNatives.thisScript` which, in turn could need `_globalState`. Since the state wasn't set yet, this yielded a NPE. R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/ffb72ee8170eed364b3ec500ac0a0097d359a143

Patch Set 1 #

Patch Set 2 : Add comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M sdk/lib/_internal/js_runtime/lib/isolate_helper.dart View 1 4 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 5 (1 generated)
floitsch
Several things: - this can only be triggered in an environment where isWorker is false, ...
5 years, 4 months ago (2015-07-31 17:49:06 UTC) #2
Siggi Cherem (dart-lang)
lgtm I'm fine with either approach too.
5 years, 4 months ago (2015-07-31 18:04:05 UTC) #3
floitsch
On 2015/07/31 18:04:05, Siggi Cherem (dart-lang) wrote: > lgtm > > I'm fine with either ...
5 years, 4 months ago (2015-08-03 08:37:36 UTC) #4
floitsch
5 years, 4 months ago (2015-08-03 08:37:46 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
ffb72ee8170eed364b3ec500ac0a0097d359a143 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698