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

Issue 23803006: Fix a subtle bug in barback. (Closed)

Created:
7 years, 3 months ago by nweiz
Modified:
7 years, 3 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix a subtle bug in barback. When a [PhaseOutput.removeListeners] was called, the output was re-added to the [Phase] but its removal event wasn't re-subscribed. This meant that if that output was later removed, the phase got into an inconsistent state where it would perform operations on a removed output. R=rnystrom@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=27170

Patch Set 1 #

Total comments: 4

Patch Set 2 : Code review changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -2 lines) Patch
M pkg/barback/lib/src/phase.dart View 1 2 chunks +4 lines, -2 lines 0 comments Download
M pkg/barback/lib/src/phase_output.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/barback/test/package_graph/add_remove_transform_test.dart View 1 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
nweiz
7 years, 3 months ago (2013-09-05 00:02:31 UTC) #1
Bob Nystrom
Two nits but LGTM. https://codereview.chromium.org/23803006/diff/1/pkg/barback/lib/src/phase.dart File pkg/barback/lib/src/phase.dart (right): https://codereview.chromium.org/23803006/diff/1/pkg/barback/lib/src/phase.dart#newcode151 pkg/barback/lib/src/phase.dart:151: _outputs[output.output.id].output.whenRemoved.then((_) { Instead of "_outputs[output.output.id]" ...
7 years, 3 months ago (2013-09-05 00:09:55 UTC) #2
nweiz
Added more detail to the description. https://codereview.chromium.org/23803006/diff/1/pkg/barback/lib/src/phase.dart File pkg/barback/lib/src/phase.dart (right): https://codereview.chromium.org/23803006/diff/1/pkg/barback/lib/src/phase.dart#newcode151 pkg/barback/lib/src/phase.dart:151: _outputs[output.output.id].output.whenRemoved.then((_) { On ...
7 years, 3 months ago (2013-09-05 00:13:09 UTC) #3
nweiz
7 years, 3 months ago (2013-09-05 00:13:40 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r27170 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698