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

Issue 605213002: Change restrictions on start/end on String.fromCharCodes. (Closed)

Created:
6 years, 2 months ago by Lasse Reichstein Nielsen
Modified:
6 years, 2 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, floitsch
Visibility:
Public.

Description

Change restrictions on start/end on String.fromCharCodes. Must now be 0 <= start <= end <= iterable.length. R=sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=40755

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rewrite to actually make it work. #

Total comments: 5

Patch Set 3 : Address commments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -48 lines) Patch
M runtime/lib/string_patch.dart View 1 2 2 chunks +44 lines, -8 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/core_patch.dart View 1 2 2 chunks +44 lines, -22 lines 0 comments Download
M sdk/lib/core/string.dart View 1 chunk +4 lines, -7 lines 0 comments Download
M tests/corelib/string_fromcharcodes_test.dart View 1 3 chunks +9 lines, -11 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Lasse Reichstein Nielsen
By popular demand.
6 years, 2 months ago (2014-09-26 10:42:11 UTC) #2
Søren Gjesse
https://codereview.chromium.org/605213002/diff/1/runtime/lib/string_patch.dart File runtime/lib/string_patch.dart (right): https://codereview.chromium.org/605213002/diff/1/runtime/lib/string_patch.dart#newcode69 runtime/lib/string_patch.dart:69: charCodes = new List.from(charCodes, growable: false); If the iterable ...
6 years, 2 months ago (2014-09-26 11:43:00 UTC) #3
Lasse Reichstein Nielsen
Update, ptal
6 years, 2 months ago (2014-09-29 07:49:28 UTC) #4
Lasse Reichstein Nielsen
https://codereview.chromium.org/605213002/diff/20001/runtime/lib/string_patch.dart File runtime/lib/string_patch.dart (left): https://codereview.chromium.org/605213002/diff/20001/runtime/lib/string_patch.dart#oldcode67 runtime/lib/string_patch.dart:67: if ((charCodes is Uint8List) || (charCodes is Int8List)) { ...
6 years, 2 months ago (2014-09-29 07:51:08 UTC) #6
Søren Gjesse
lgtm https://codereview.chromium.org/605213002/diff/20001/runtime/lib/string_patch.dart File runtime/lib/string_patch.dart (right): https://codereview.chromium.org/605213002/diff/20001/runtime/lib/string_patch.dart#newcode311 runtime/lib/string_patch.dart:311: return (codeUnit == 0x85) || (codeUnit == 0xA0); ...
6 years, 2 months ago (2014-09-29 07:54:41 UTC) #7
Lasse Reichstein Nielsen
Committed patchset #3 (id:40001) manually as 40755 (presubmit successful).
6 years, 2 months ago (2014-09-29 08:15:56 UTC) #8
Lasse Reichstein Nielsen
6 years, 2 months ago (2014-09-29 08:16:19 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/605213002/diff/20001/runtime/lib/string_patch...
File runtime/lib/string_patch.dart (right):

https://codereview.chromium.org/605213002/diff/20001/runtime/lib/string_patch...
runtime/lib/string_patch.dart:311: return (codeUnit == 0x85) || (codeUnit ==
0xA0);
On 2014/09/29 07:54:40, Søren Gjesse wrote:
> Keep the NEL, NBSP comment.

Done.

https://codereview.chromium.org/605213002/diff/20001/sdk/lib/_internal/compil...
File sdk/lib/_internal/compiler/js_lib/core_patch.dart (right):

https://codereview.chromium.org/605213002/diff/20001/sdk/lib/_internal/compil...
sdk/lib/_internal/compiler/js_lib/core_patch.dart:308: static String
_stringFromIterable(Iterable<int> charCodes, int start, int end) {
On 2014/09/29 07:54:40, Søren Gjesse wrote:
> Long line.

Done.

Powered by Google App Engine
This is Rietveld 408576698