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

Issue 8400038: Use strict equality when comparing with null, especially when null is a default value. (Closed)

Created:
9 years, 1 month ago by srdjan
Modified:
9 years, 1 month ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Use strict equality when comparing with null, especially when null is a default value. Committed: https://code.google.com/p/dart/source/detail?r=859

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -31 lines) Patch
M corelib/src/expect.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M corelib/src/implementation/future_implementation.dart View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M corelib/src/implementation/promise_implementation.dart View 1 3 chunks +3 lines, -3 lines 0 comments Download
M corelib/src/implementation/splay_tree.dart View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M runtime/bin/file_impl.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/bin/process_impl.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/socket_impl.dart View 1 3 chunks +4 lines, -4 lines 0 comments Download
M runtime/bin/socket_stream.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/bin/string_stream.dart View 1 3 chunks +4 lines, -4 lines 0 comments Download
M runtime/lib/string.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/snapshot_test.dart View 1 5 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
srdjan
9 years, 1 month ago (2011-10-27 20:46:16 UTC) #1
srdjan
M corelib/src/implementation/future_implementation.dart M runtime/lib/string.dart M corelib/src/expect.dart M corelib/src/implementation/splay_tree.dart M corelib/src/implementation/promise_implementation.dart M runtime/vm/snapshot_test.dart M runtime/bin/string_stream.dart M ...
9 years, 1 month ago (2011-10-27 20:47:45 UTC) #2
siva
lgtm http://codereview.chromium.org/8400038/diff/2001/corelib/src/implementation/future_implementation.dart File corelib/src/implementation/future_implementation.dart (right): http://codereview.chromium.org/8400038/diff/2001/corelib/src/implementation/future_implementation.dart#newcode78 corelib/src/implementation/future_implementation.dart:78: return isComplete && exception === null; shouldn't this ...
9 years, 1 month ago (2011-10-27 21:35:07 UTC) #3
srdjan
9 years, 1 month ago (2011-10-27 21:50:11 UTC) #4
http://codereview.chromium.org/8400038/diff/2001/corelib/src/implementation/f...
File corelib/src/implementation/future_implementation.dart (right):

http://codereview.chromium.org/8400038/diff/2001/corelib/src/implementation/f...
corelib/src/implementation/future_implementation.dart:78: return isComplete &&
exception === null;
On 2011/10/27 21:35:07, asiva wrote:
> shouldn't this be _exception === null ?

Good catch! Obviously we do not have enough tests ;-).

http://codereview.chromium.org/8400038/diff/2001/corelib/src/implementation/s...
File corelib/src/implementation/splay_tree.dart (right):

http://codereview.chromium.org/8400038/diff/2001/corelib/src/implementation/s...
corelib/src/implementation/splay_tree.dart:184: while (current != null) {
On 2011/10/27 21:35:07, asiva wrote:
> should these be !==

Yes, and there are a couple more.. next CL.

Powered by Google App Engine
This is Rietveld 408576698