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

Unified Diff: dart/frog/leg/lib/js_helper.dart

Issue 9355032: Implement Strings API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dart/frog/leg/lib/mockimpl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/lib/js_helper.dart
diff --git a/dart/frog/leg/lib/js_helper.dart b/dart/frog/leg/lib/js_helper.dart
index 6cee23de56b729b12946aec55fafc08ba4c54879..9e80b19681394975f286888721f00ecf0db254c1 100644
--- a/dart/frog/leg/lib/js_helper.dart
+++ b/dart/frog/leg/lib/js_helper.dart
@@ -391,6 +391,13 @@ class Primitives {
static int getSeconds(int secondsSinceEpoch, bool isUtc) {
throw 'Primitives.getSeconds is not implemented';
}
+
+ static String stringFromCharCodes(charCodes) {
+ for (var i in charCodes) {
kasperl 2012/02/20 10:48:50 Would it make sense to check that charCodes is a l
ahe 2012/02/20 16:35:26 That is already done in StringBase.createFromCharC
+ checkNum(i);
+ }
+ return JS('String', @'String.fromCharCode.apply($0, $1)', null, charCodes);
+ }
}
builtin$compareTo$1(a, b) {
« no previous file with comments | « no previous file | dart/frog/leg/lib/mockimpl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698