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

Issue 9852018: Minor tweaks to the core library. (Closed)

Created:
8 years, 9 months ago by ahe
Modified:
8 years, 9 months ago
CC:
reviews_dartlang.org, compiler-dev_dartlang.org
Visibility:
Public.

Description

Minor tweaks to the core library. Committed: https://code.google.com/p/dart/source/detail?r=5818

Patch Set 1 #

Total comments: 4

Patch Set 2 : Copy VM's StringBase.allMatches. #

Patch Set 3 : Doh! #

Total comments: 2

Patch Set 4 : Add types #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -20 lines) Patch
M dart/frog/leg/lib/js_helper.dart View 2 chunks +5 lines, -2 lines 1 comment Download
M dart/frog/leg/lib/string_helper.dart View 1 2 3 1 chunk +20 lines, -14 lines 0 comments Download
M dart/tests/corelib/corelib-leg.status View 2 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
ahe
8 years, 9 months ago (2012-03-25 02:07:43 UTC) #1
ngeoffray
https://chromiumcodereview.appspot.com/9852018/diff/1/dart/frog/leg/lib/string_helper.dart File dart/frog/leg/lib/string_helper.dart (right): https://chromiumcodereview.appspot.com/9852018/diff/1/dart/frog/leg/lib/string_helper.dart#newcode36 dart/frog/leg/lib/string_helper.dart:36: var result = new List(); This should be new ...
8 years, 9 months ago (2012-03-25 18:22:17 UTC) #2
Lasse Reichstein Nielsen
https://chromiumcodereview.appspot.com/9852018/diff/1/dart/frog/leg/lib/string_helper.dart File dart/frog/leg/lib/string_helper.dart (right): https://chromiumcodereview.appspot.com/9852018/diff/1/dart/frog/leg/lib/string_helper.dart#newcode35 dart/frog/leg/lib/string_helper.dart:35: allMatchesInStringUnchecked(receiver, str) { Could you add a comment to ...
8 years, 9 months ago (2012-03-25 18:22:40 UTC) #3
ahe
Hi Lasse and Nicolas, Thank you for taking a look and catching some embarrassing confusion ...
8 years, 9 months ago (2012-03-25 19:07:31 UTC) #4
ngeoffray
LGTM https://chromiumcodereview.appspot.com/9852018/diff/3002/dart/frog/leg/lib/string_helper.dart File dart/frog/leg/lib/string_helper.dart (right): https://chromiumcodereview.appspot.com/9852018/diff/3002/dart/frog/leg/lib/string_helper.dart#newcode35 dart/frog/leg/lib/string_helper.dart:35: List<Match> allMatchesInStringUnchecked(needle, haystack) { Could you type the ...
8 years, 9 months ago (2012-03-26 07:00:30 UTC) #5
ahe
Thank you! https://chromiumcodereview.appspot.com/9852018/diff/3002/dart/frog/leg/lib/string_helper.dart File dart/frog/leg/lib/string_helper.dart (right): https://chromiumcodereview.appspot.com/9852018/diff/3002/dart/frog/leg/lib/string_helper.dart#newcode35 dart/frog/leg/lib/string_helper.dart:35: List<Match> allMatchesInStringUnchecked(needle, haystack) { On 2012/03/26 07:00:30, ...
8 years, 9 months ago (2012-03-26 08:10:12 UTC) #6
floitsch
8 years, 9 months ago (2012-03-26 19:57:43 UTC) #7
LGTM.

https://chromiumcodereview.appspot.com/9852018/diff/8001/dart/frog/leg/lib/js...
File dart/frog/leg/lib/js_helper.dart (right):

https://chromiumcodereview.appspot.com/9852018/diff/8001/dart/frog/leg/lib/js...
dart/frog/leg/lib/js_helper.dart:702: start = receiver.length - 1;
You could avoid special casing by simply setting start to receiver.length. JS's
lastIndexOf should handle that just fine.

Powered by Google App Engine
This is Rietveld 408576698