Bug 1217982 - Remove for-each from storage/. r=mak
authorTooru Fujisawa <arai_a@mac.com>
Mon, 19 Oct 2015 03:53:14 +0900
changeset 305279 1200b4f1676c5478504a67ee76e1470140b35aa2
parent 305278 d3b3ccf98cbcdbc4f8c76a03ee4d54fb420c4930
child 305280 8c07b084c0f8fb17885979c3322f5e15a1298bbe
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs1217982
milestone44.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 1217982 - Remove for-each from storage/. r=mak
storage/test/unit/test_js_helpers.js
--- a/storage/test/unit/test_js_helpers.js
+++ b/storage/test/unit/test_js_helpers.js
@@ -65,17 +65,17 @@ function test_params_gets_sync()
   /*
   let stmt = createStatement(
     "SELECT * FROM test WHERE id IN (:a, :b, :c)"
   );
 
   // Make sure we do not assert in getting the value.
   let originalCount = Object.getOwnPropertyNames(stmt.params).length;
   let expected = ["a", "b", "c"];
-  for each (let name in expected) {
+  for (let name of expected) {
     stmt.params[name];
   }
 
   // Now make sure we didn't magically get any additional properties.
   let finalCount = Object.getOwnPropertyNames(stmt.params).length;
   do_check_eq(originalCount + expected.length, finalCount);
   */
 }
@@ -86,17 +86,17 @@ function test_params_gets_async()
   /*
   let stmt = createAsyncStatement(
     "SELECT * FROM test WHERE id IN (:a, :b, :c)"
   );
 
   // Make sure we do not assert in getting the value.
   let originalCount = Object.getOwnPropertyNames(stmt.params).length;
   let expected = ["a", "b", "c"];
-  for each (let name in expected) {
+  for (let name of expected) {
     stmt.params[name];
   }
 
   // Now make sure we didn't magically get any additional properties.
   let finalCount = Object.getOwnPropertyNames(stmt.params).length;
   do_check_eq(originalCount + expected.length, finalCount);
   */
 }