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

Issue 8575004: Test for immutable Lists in ListSet API methods. (Closed)

Created:
9 years, 1 month ago by Mads Ager (google)
Modified:
9 years, 1 month ago
Reviewers:
turnidge, Søren Gjesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Test for immutable Lists in ListSet API methods. Using the file and socket API it was possible to modify immutable arrays. R=sgjesse@google.com,turnidge@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=1604

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -4 lines) Patch
M runtime/bin/file.cc View 1 chunk +3 lines, -2 lines 1 comment Download
M runtime/bin/socket.cc View 1 chunk +3 lines, -1 line 1 comment Download
M runtime/bin/socket_impl.dart View 1 chunk +5 lines, -1 line 1 comment Download
M runtime/vm/dart_api_impl.cc View 2 chunks +6 lines, -0 lines 0 comments Download
A tests/standalone/src/ReadIntoConstList.dart View 1 chunk +27 lines, -0 lines 0 comments Download
M tests/standalone/standalone.status View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mads Ager (google)
Todd, could you check the API side of this?
9 years, 1 month ago (2011-11-16 14:35:13 UTC) #1
turnidge
lgtm, with an optional suggestion below. http://codereview.chromium.org/8575004/diff/1/runtime/bin/file.cc File runtime/bin/file.cc (right): http://codereview.chromium.org/8575004/diff/1/runtime/bin/file.cc#newcode163 runtime/bin/file.cc:163: return_value = total_bytes_read; ...
9 years, 1 month ago (2011-11-16 18:50:18 UTC) #2
Mads Ager (google)
9 years, 1 month ago (2011-11-17 06:49:56 UTC) #3
On 2011/11/16 18:50:18, turnidge wrote:
> lgtm, with an optional suggestion below.
> 
> http://codereview.chromium.org/8575004/diff/1/runtime/bin/file.cc
> File runtime/bin/file.cc (right):
> 
> http://codereview.chromium.org/8575004/diff/1/runtime/bin/file.cc#newcode163
> runtime/bin/file.cc:163: return_value = total_bytes_read;
> There's probably some good diagnostic information for the user in
> Dart_GetError(result).  Perhaps not useful in this case though.  Up to you.
> 
> http://codereview.chromium.org/8575004/diff/1/runtime/bin/socket.cc
> File runtime/bin/socket.cc (right):
> 
> http://codereview.chromium.org/8575004/diff/1/runtime/bin/socket.cc#newcode61
> runtime/bin/socket.cc:61: if (Dart_IsError(result)) {
> Diito previous comment.
> 
> http://codereview.chromium.org/8575004/diff/1/runtime/bin/socket_impl.dart
> File runtime/bin/socket_impl.dart (right):
> 
>
http://codereview.chromium.org/8575004/diff/1/runtime/bin/socket_impl.dart#ne...
> runtime/bin/socket_impl.dart:301: throw new SocketIOException("Error: readList
> failed");
> Yeah, here would be a good place to have that error information, perhaps.

I agree. Providing better error messages is on my TODO list in general. I'll put
this back as is for now and work on error messages in a separate change.

Thanks!

Powered by Google App Engine
This is Rietveld 408576698