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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/core_patch.dart

Issue 11411092: Revert "Add some support for the code-point code-unit distinction." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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
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 cd2d34ade827b4d986efea7343cd2de10c0d43ee..5c6cb3bbe6ee7f8a38ba7532fc3d4730c0287a00 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
@@ -168,12 +168,12 @@ patch class _ListImpl<E> {
patch class String {
- patch factory String.fromCodeUnits(List<int> codeUnits) {
- if (!isJsArray(codeUnits)) {
- if (codeUnits is !List) throw new ArgumentError(codeUnits);
- codeUnits = new List.from(codeUnits);
+ patch factory String.fromCharCodes(List<int> charCodes) {
+ if (!isJsArray(charCodes)) {
+ if (charCodes is !List) throw new ArgumentError(charCodes);
+ charCodes = new List.from(charCodes);
}
- return Primitives.stringFromCodeUnits(codeUnits);
+ return Primitives.stringFromCharCodes(charCodes);
}
}

Powered by Google App Engine
This is Rietveld 408576698