Bug 1029128 - Fix strict-mode error in the JSON storage file. r=dolske

This commit is contained in:
Blake Kaplan 2014-06-24 16:57:40 -04:00
Родитель c1f8ccf85f
Коммит 616d35623e
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -11,6 +11,8 @@
////////////////////////////////////////////////////////////////////////////////
//// Globals
"use strict";
const { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
@ -137,12 +139,10 @@ this.LoginManagerStorage_json.prototype = {
addLogin : function (login) {
this._store.ensureDataReady();
let encUsername, encPassword;
// Throws if there are bogus values.
LoginHelper.checkLoginValues(login);
[encUsername, encPassword, encType] = this._encryptLogin(login);
let [encUsername, encPassword, encType] = this._encryptLogin(login);
// Clone the login, so we don't modify the caller's object.
let loginClone = login.clone();