Bug 1055643: Drop "let" keyword to fix JS warning about redeclaring argument, in stripHeaderAttributes(). r=ckarlof
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 19 Aug 2014 12:29:34 -0700
changeset 200383 ecc9477045c7c6099f00032150f2630cd121bf79
parent 200382 9b12f5f4b5cb451b8dca2a75c999f340952a3017
child 200384 3c8adc8ca61b200f7ba67054ad2505f9a38be329
push id47887
push userdholbert@mozilla.com
push dateTue, 19 Aug 2014 19:29:55 +0000
treeherdermozilla-inbound@3c8adc8ca61b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersckarlof
bugs1055643
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1055643: Drop "let" keyword to fix JS warning about redeclaring argument, in stripHeaderAttributes(). r=ckarlof
services/crypto/modules/utils.js
--- a/services/crypto/modules/utils.js
+++ b/services/crypto/modules/utils.js
@@ -388,17 +388,17 @@ this.CryptoUtils = {
     return header += ', ext="' + ext +'"';
   },
 
   /**
    * Given an HTTP header value, strip out any attributes.
    */
 
   stripHeaderAttributes: function(value) {
-    let value = value || "";
+    value = value || "";
     let i = value.indexOf(";");
     return value.substring(0, (i >= 0) ? i : undefined).trim().toLowerCase();
   },
 
   /**
    * Compute the HAWK client values (mostly the header) for an HTTP request.
    *
    * @param  URI