Chromium Code Reviews| 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) { |