From c71011752a4c3479beea0c6c0bb9e2551eb084a9 Mon Sep 17 00:00:00 2001 From: Zheng Chaoping Date: Tue, 25 Oct 2016 16:28:50 +0800 Subject: [PATCH] Fix can't access lexical declaration `locale' before initialization --- common/modules/protocol.jsm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/modules/protocol.jsm b/common/modules/protocol.jsm index c363ebff..235d2cd5 100644 --- a/common/modules/protocol.jsm +++ b/common/modules/protocol.jsm @@ -151,9 +151,9 @@ ProtocolBase.prototype = { }; function LocaleChannel(pkg, locale, path, orig) { - for (let locale of [locale, "en-US"]) + for (let loc of [locale, "en-US"]) for (let sep of "-/") { - var channel = Channel(["resource:/", pkg + sep + locale, path].join("/"), + var channel = Channel(["resource:/", pkg + sep + loc, path].join("/"), orig, true, true); if (channel) return channel;