| Index: sdk/lib/core/string.dart
|
| diff --git a/sdk/lib/core/string.dart b/sdk/lib/core/string.dart
|
| index 5488a2ff6430d6c75a34ec03b3d8b29641791885..1de01c6218e9a0b65e52f03b8e8fd1496495b126 100644
|
| --- a/sdk/lib/core/string.dart
|
| +++ b/sdk/lib/core/string.dart
|
| @@ -116,13 +116,9 @@ abstract class String implements Comparable<String>, Pattern {
|
| * the code units form a surrogate pair. See documentation for
|
| * [fromCharCodes].
|
| *
|
| - * Creating a String with half of a surrogate pair is legal but generally
|
| - * discouraged.
|
| + * Creating a String with half of a surrogate pair is allowed.
|
| */
|
| - factory String.fromCharCode(int charCode) {
|
| - List<int> charCodes = new List<int>.filled(1, charCode);
|
| - return new String.fromCharCodes(charCodes);
|
| - }
|
| + external factory String.fromCharCode(int charCode);
|
|
|
| /**
|
| * Returns the string value of the environment declaration [name].
|
|
|