Index: utils/tests/pub/test_pub.dart |
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart |
index 823dd129801876a341729630ff9dcaab34417bdd..a8587cf09ebe60b303863767dc4c4d40b2018e1e 100644 |
--- a/utils/tests/pub/test_pub.dart |
+++ b/utils/tests/pub/test_pub.dart |
@@ -1430,7 +1430,7 @@ class ScheduledProcess { |
/// Writes [line] to the process as stdin. |
void writeLine(String line) { |
_schedule((_) => _processFuture.then( |
- (p) => p.stdin.add('$line\n'.charCodes))); |
+ (p) => p.stdin.add('$line\n'.codeUnits))); |
} |
/// Kills the process, and waits until it's dead. |