| Index: sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart b/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
|
| index 392c140d87c54548c1d256b79a552bec816473f9..de4b27b3fab8939aca1531d972b9e2d8126f18dd 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
|
| @@ -533,11 +533,12 @@ class Primitives {
|
|
|
| static num dateNow() => JS('num', r'Date.now()');
|
|
|
| - static String stringFromCharCodes(charCodes) {
|
| - for (var i in charCodes) {
|
| + static String stringFromCodeUnits(codeUnits) {
|
| + for (var i in codeUnits) {
|
| if (i is !int) throw new ArgumentError(i);
|
| + if (i > String.MAX_CODE_UNIT) throw new ArgumentError(i);
|
| }
|
| - return JS('String', r'String.fromCharCode.apply(#, #)', null, charCodes);
|
| + return JS('String', r'String.fromCharCode.apply(#, #)', null, codeUnits);
|
| }
|
|
|
| static String getTimeZoneName(receiver) {
|
|
|