| Index: sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
|
| index 253c1fae32645dc68c44569a6efcd6bcd03c431a..7939b777c022979ecbc7f31b391971311b2f2cc3 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
|
| @@ -168,13 +168,13 @@ patch class _ListImpl<E> {
|
|
|
|
|
| patch class String {
|
| - patch factory String.fromCharCodes(List<int> charCodes) {
|
| - checkNull(charCodes);
|
| - if (!isJsArray(charCodes)) {
|
| - if (charCodes is !List) throw new ArgumentError(charCodes);
|
| - charCodes = new List.from(charCodes);
|
| + patch factory String.fromCodeUnits(List<int> codeUnits) {
|
| + checkNull(codeUnits);
|
| + if (!isJsArray(codeUnits)) {
|
| + if (codeUnits is !List) throw new ArgumentError(codeUnits);
|
| + codeUnits = new List.from(codeUnits);
|
| }
|
| - return Primitives.stringFromCharCodes(charCodes);
|
| + return Primitives.stringFromCodeUnits(codeUnits);
|
| }
|
| }
|
|
|
|
|