From 37cf564ad1f41ed0e824f2ebff723074a0c0ab75 Mon Sep 17 00:00:00 2001 From: Chris Peterson Date: Tue, 31 Dec 2013 20:18:47 -0800 Subject: [PATCH] Bug 956468 - Fix "ReferenceError: assignment to undeclared variable res" in nsUpdateService.js. r=rstrong --- toolkit/mozapps/update/nsUpdateService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/mozapps/update/nsUpdateService.js b/toolkit/mozapps/update/nsUpdateService.js index be8791e6f718..66ced080c613 100644 --- a/toolkit/mozapps/update/nsUpdateService.js +++ b/toolkit/mozapps/update/nsUpdateService.js @@ -1305,7 +1305,7 @@ function getLocale() { if (gLocale) return gLocale; - for each (res in ['app', 'gre']) { + for (let res of ['app', 'gre']) { var channel = Services.io.newChannel("resource://" + res + "/" + FILE_UPDATE_LOCALE, null, null); try { var inputStream = channel.open();