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

Issue 8539009: Fix type mismatch errors. Environments do not only contain strings. (Closed)

Created:
9 years, 1 month ago by Mads Ager (google)
Modified:
9 years, 1 month ago
Reviewers:
Bill Hesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix type mismatch errors. Environments do not only contain strings. R=whesse@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=1451

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M tests/standalone/src/StatusExpressionTest.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M tools/testing/dart/status_expression.dart View 1 chunk +1 line, -1 line 2 comments Download

Messages

Total messages: 4 (0 generated)
Mads Ager (google)
9 years, 1 month ago (2011-11-11 09:36:59 UTC) #1
Bill Hesse
LGTM. But this makes $checked == true return false no matter what the value of ...
9 years, 1 month ago (2011-11-11 09:40:47 UTC) #2
Bill Hesse
Proposed fix. http://codereview.chromium.org/8539009/diff/1/tools/testing/dart/status_expression.dart File tools/testing/dart/status_expression.dart (right): http://codereview.chromium.org/8539009/diff/1/tools/testing/dart/status_expression.dart#newcode95 tools/testing/dart/status_expression.dart:95: termValue(environment) => environment[name]; How about String termValue(environment) ...
9 years, 1 month ago (2011-11-11 09:43:19 UTC) #3
Mads Ager (google)
9 years, 1 month ago (2011-11-11 09:46:30 UTC) #4
http://codereview.chromium.org/8539009/diff/1/tools/testing/dart/status_expre...
File tools/testing/dart/status_expression.dart (right):

http://codereview.chromium.org/8539009/diff/1/tools/testing/dart/status_expre...
tools/testing/dart/status_expression.dart:95: termValue(environment) =>
environment[name];
On 2011/11/11 09:43:19, Bill Hesse wrote:
> How about String termValue(environment) => environment[name].toString().  We
> never want a boolean returned from this function, because it will be compared
to
> a string.

Sounds good to me. I'll do that as part of my next changelist. Thanks.

Powered by Google App Engine
This is Rietveld 408576698