Index: utils/tests/pub/test_pub.dart |
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart |
index 2a148f214c052954c41a0ccc19309eb84f5b14c8..aa0c821234cdc68a28882957846cfcb277a8d9db 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. |