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

Issue 9423034: Implement most of String API. (Closed)

Created:
8 years, 10 months ago by ahe
Modified:
8 years, 10 months ago
Reviewers:
ngeoffray, kasperl
CC:
reviews_dartlang.org, karlklose, floitsch, Lasse Reichstein Nielsen
Visibility:
Public.

Description

Implement most of String API. Committed: https://code.google.com/p/dart/source/detail?r=4434

Patch Set 1 #

Total comments: 18
Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -82 lines) Patch
M dart/frog/file_system_vm.dart View 2 chunks +2 lines, -1 line 0 comments Download
M dart/frog/leg/lib/js_helper.dart View 12 chunks +77 lines, -24 lines 18 comments Download
M dart/frog/leg/lib/mockimpl.dart View 1 chunk +1 line, -0 lines 0 comments Download
M dart/tests/co19/co19-leg.status View 6 chunks +25 lines, -52 lines 0 comments Download
M dart/tests/corelib/corelib-leg.status View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ahe
8 years, 10 months ago (2012-02-19 22:28:08 UTC) #1
kasperl
LGTM. https://chromiumcodereview.appspot.com/9423034/diff/1/dart/frog/leg/lib/js_helper.dart File dart/frog/leg/lib/js_helper.dart (right): https://chromiumcodereview.appspot.com/9423034/diff/1/dart/frog/leg/lib/js_helper.dart#newcode434 dart/frog/leg/lib/js_helper.dart:434: return (a === b) ? 0 : JS('bool', ...
8 years, 10 months ago (2012-02-20 10:44:50 UTC) #2
ahe
Hi Kasper, Thank you for taking a look. I'll send a new CL with the ...
8 years, 10 months ago (2012-02-20 16:31:58 UTC) #3
ngeoffray
8 years, 10 months ago (2012-02-21 09:45:37 UTC) #4
I understand this CL fixes a few tests, and that's good! But I'm not sure about
all the details.

https://chromiumcodereview.appspot.com/9423034/diff/1/dart/frog/leg/lib/js_he...
File dart/frog/leg/lib/js_helper.dart (right):

https://chromiumcodereview.appspot.com/9423034/diff/1/dart/frog/leg/lib/js_he...
dart/frog/leg/lib/js_helper.dart:204: if (index is !num) throw new
IllegalArgumentException(index);
Why not checkNum?

https://chromiumcodereview.appspot.com/9423034/diff/1/dart/frog/leg/lib/js_he...
dart/frog/leg/lib/js_helper.dart:205: if (index.truncate() !== index) throw new
IllegalArgumentException(index);
What's this about?

https://chromiumcodereview.appspot.com/9423034/diff/1/dart/frog/leg/lib/js_he...
dart/frog/leg/lib/js_helper.dart:317: checkNull(receiver);
No need for check null

https://chromiumcodereview.appspot.com/9423034/diff/1/dart/frog/leg/lib/js_he...
dart/frog/leg/lib/js_helper.dart:319: if (index is !num) throw new
IllegalArgumentException(index);
Why not checkNum?

https://chromiumcodereview.appspot.com/9423034/diff/1/dart/frog/leg/lib/js_he...
dart/frog/leg/lib/js_helper.dart:402: if (i is !int) throw new
IllegalArgumentException(i);
Why not checkInt?

https://chromiumcodereview.appspot.com/9423034/diff/1/dart/frog/leg/lib/js_he...
dart/frog/leg/lib/js_helper.dart:433: if (b is !String) throw new
IllegalArgumentException(b);
checkString?

https://chromiumcodereview.appspot.com/9423034/diff/1/dart/frog/leg/lib/js_he...
dart/frog/leg/lib/js_helper.dart:514: checkNull(element);
No need for check null

https://chromiumcodereview.appspot.com/9423034/diff/1/dart/frog/leg/lib/js_he...
dart/frog/leg/lib/js_helper.dart:515: if (start is !int) throw new
IllegalArgumentException(start);
checkInt, checkString?

https://chromiumcodereview.appspot.com/9423034/diff/1/dart/frog/leg/lib/js_he...
dart/frog/leg/lib/js_helper.dart:581: checkNull(element);
No need.

https://chromiumcodereview.appspot.com/9423034/diff/1/dart/frog/leg/lib/js_he...
dart/frog/leg/lib/js_helper.dart:593: checkNull(element);
No need.

Powered by Google App Engine
This is Rietveld 408576698