Chromium Code Reviews| 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 1da20f6e90c14bd70e32cbfd216d45c2efffb1d7..4f051b92df2f690d69a7b668fbece9b897519fc3 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart |
| @@ -193,9 +193,8 @@ patch class List<E> { |
| patch class String { |
| - patch factory String.fromCharCodes(List<int> charCodes) { |
| + patch factory String.fromCharCodes(Iterable<int> charCodes) { |
| if (!isJsArray(charCodes)) { |
| - if (charCodes is !List) throw new ArgumentError(charCodes); |
| charCodes = new List.from(charCodes); |
|
floitsch
2013/03/05 14:14:04
assert that it is a jsArray.
Same: maybe add comme
|
| } |
| return Primitives.stringFromCharCodes(charCodes); |