Bug 1415345 - Fix undefined variable in error message in FxAccountsStorageManager#getAccountData. r=markh
authorMark Banner <standard8@mozilla.com>
Tue, 07 Nov 2017 23:00:26 +0000
changeset 444181 798de42346d14e277a4f2de2189d4e1870eeef8e
parent 444180 2f059a9dbd9d0b76230f53a78bf29dfad1e56d06
child 444182 ffd79ce93abd8199f4c98540b9cd32c8dc4dfe38
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarkh
bugs1415345
milestone58.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 1415345 - Fix undefined variable in error message in FxAccountsStorageManager#getAccountData. r=markh MozReview-Commit-ID: 4mCdPfKX5lz
services/fxaccounts/FxAccountsStorage.jsm
--- a/services/fxaccounts/FxAccountsStorage.jsm
+++ b/services/fxaccounts/FxAccountsStorage.jsm
@@ -188,17 +188,17 @@ this.FxAccountsStorageManager.prototype 
         if (!checkedSecure) {
           await this._maybeReadAndUpdateSecure();
           checkedSecure = true;
         }
         if (this.cachedSecure[fieldName] !== undefined) {
           result[fieldName] = this.cachedSecure[fieldName];
         }
       } else {
-        throw new Error("unexpected field '" + name + "'");
+        throw new Error("unexpected field '" + fieldName + "'");
       }
     }
     return result;
   },
 
   // Update just the specified fields. This DOES NOT allow you to change to
   // a different user, nor to set the user as signed-out.
   async updateAccountData(newFields) {