зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1061970: Check if JS variable 'this._statements' is defined before using it (and use 'for...of'), in CPS2_destroy(). r=adw
This commit is contained in:
Родитель
59742ef208
Коммит
a5eb334494
|
@ -654,8 +654,10 @@ ContentPrefService2.prototype = {
|
|||
},
|
||||
|
||||
destroy: function CPS2_destroy() {
|
||||
for each (let stmt in this._statements) {
|
||||
stmt.finalize();
|
||||
if (this._statements) {
|
||||
for (let stmt of this._statements) {
|
||||
stmt.finalize();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче