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

Unified Diff: utils/pub/utils.dart

Issue 11263040: Make String.charCodes a getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 2 months 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
« no previous file with comments | « utils/peg/pegparser.dart ('k') | utils/pub/yaml/composer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/utils.dart
diff --git a/utils/pub/utils.dart b/utils/pub/utils.dart
index b3db4e060184d6309a5253172da18ee2c9f0d40e..98cc79b92928642d439c2c3c1405d4ba2c7f7c13 100644
--- a/utils/pub/utils.dart
+++ b/utils/pub/utils.dart
@@ -119,7 +119,7 @@ bool endsWithPattern(String str, Pattern matcher) {
* Returns the hex-encoded sha1 hash of [source].
*/
String sha1(String source) =>
- CryptoUtils.bytesToHex(new SHA1().update(source.charCodes()).digest());
+ CryptoUtils.bytesToHex(new SHA1().update(source.charCodes).digest());
/**
* Returns a [Future] that completes in [milliSeconds].
« no previous file with comments | « utils/peg/pegparser.dart ('k') | utils/pub/yaml/composer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698