From f7752ac6994e35cf3b1daa1237eda9175ae4188c Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Thu, 9 Feb 2017 18:11:28 -0800 Subject: [PATCH] ibusManager: Use const correctly Per ES6, a variable declared const should only be valid inside its lexical scope. Previously, GJS would accept this code, but that will change in the SpiderMonkey JS engine in the next release of GJS. https://bugzilla.gnome.org/show_bug.cgi?id=778425 --- js/misc/ibusManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/misc/ibusManager.js b/js/misc/ibusManager.js index 529352ab2..adf57b3c8 100644 --- a/js/misc/ibusManager.js +++ b/js/misc/ibusManager.js @@ -6,10 +6,11 @@ const Lang = imports.lang; const Mainloop = imports.mainloop; const Signals = imports.signals; +let IBusCandidatePopup; try { var IBus = imports.gi.IBus; _checkIBusVersion(1, 5, 2); - const IBusCandidatePopup = imports.ui.ibusCandidatePopup; + IBusCandidatePopup = imports.ui.ibusCandidatePopup; } catch (e) { var IBus = null; log(e);