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

Unified Diff: chrome/browser/resources/cryptotoken/sha256.js

Issue 917093003: Shorten Closure template notation from Array.<*> to Array<*>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove cvox Created 5 years, 10 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
Index: chrome/browser/resources/cryptotoken/sha256.js
diff --git a/chrome/browser/resources/cryptotoken/sha256.js b/chrome/browser/resources/cryptotoken/sha256.js
index 4d3c93eda6dd59f878e1dbaebf7b74342a152a67..63b62fb11bb2e584237f082eb8ed21b50e687538 100644
--- a/chrome/browser/resources/cryptotoken/sha256.js
+++ b/chrome/browser/resources/cryptotoken/sha256.js
@@ -51,7 +51,7 @@ SHA256.prototype.reset = function() {
};
/** Hash the next block of 64 bytes
- * @param {Array.<number>} buf A 64 byte buffer
+ * @param {Array<number>} buf A 64 byte buffer
*/
SHA256.prototype._compress = function(buf) {
var W = this._W;
@@ -113,7 +113,7 @@ SHA256.prototype._compress = function(buf) {
};
/** Update the hash with additional data
- * @param {Array.<number>|Uint8Array} bytes The data
+ * @param {Array<number>|Uint8Array} bytes The data
* @param {number=} opt_length How many bytes to hash, if not all */
SHA256.prototype.update = function(bytes, opt_length) {
if (!opt_length) opt_length = bytes.length;
@@ -129,7 +129,7 @@ SHA256.prototype.update = function(bytes, opt_length) {
};
/** Update the hash with a specified range from a data buffer
- * @param {Array.<number>} bytes The data buffer
+ * @param {Array<number>} bytes The data buffer
* @param {number} start Starting index of the range in bytes
* @param {number} end End index, will not be included in range
*/
@@ -148,7 +148,7 @@ SHA256.prototype.updateRange = function(bytes, start, end) {
* Optionally update the hash with additional arguments, and return the
* resulting hash value.
* @param {...*} var_args Data buffers to hash
- * @return {Array.<number>} the SHA256 hash value.
+ * @return {Array<number>} the SHA256 hash value.
*/
SHA256.prototype.digest = function(var_args) {
for (var i = 0; i < arguments.length; ++i)
« no previous file with comments | « chrome/browser/resources/cryptotoken/requestqueue.js ('k') | chrome/browser/resources/cryptotoken/signer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698