Bug 1137987 - Remove nonstandard let block from dom/downloads/tests. r=aus
authorChris Peterson <cpeterson@mozilla.com>
Fri, 27 Feb 2015 18:31:21 -0800
changeset 246747 60a37ae57d9ccbb6d8a26a469128889f3f692b0c
parent 246746 c65ef0c02ed3bf4071a76f901ab991f999662d71
child 246748 6470d649e1bbfdd782cfdcfab28d87754ca39407
push id879
push usercliu@mozilla.com
push dateTue, 03 Mar 2015 03:02:53 +0000
reviewersaus
bugs1137987
milestone39.0a1
Bug 1137987 - Remove nonstandard let block from dom/downloads/tests. r=aus
dom/downloads/tests/file_app.sjs
--- a/dom/downloads/tests/file_app.sjs
+++ b/dom/downloads/tests/file_app.sjs
@@ -28,28 +28,27 @@ function readTemplate(path) {
   var split = path.split("/");
   for(var i = 0; i < split.length; ++i) {
     file.append(split[i]);
   }
   fis.init(file, -1, -1, false);
   cis.init(fis, "UTF-8", 0, 0);
 
   var data = "";
-  let (str = {}) {
-    let read = 0;
-    do {
-      read = cis.readString(0xffffffff, str); // read as much as we can and put it in str.value
-      data += str.value;
-    } while (read != 0);
-  }
+  let str = {};
+  let read = 0;
+  do {
+    read = cis.readString(0xffffffff, str); // read as much as we can and put it in str.value
+    data += str.value;
+  } while (read != 0);
+
   cis.close();
   return data;
 }
 
 function getQuery(request) {
   var query = {};
   request.queryString.split('&').forEach(function (val) {
     var [name, value] = val.split('=');
     query[name] = unescape(value);
   });
   return query;
 }
-