From 17526f79408c362ee023eccaeb0c7fa55b66a97e Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Tue, 1 Dec 2015 11:27:50 +0900 Subject: [PATCH] Don't use deprecated catch-if. See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1228841 --- content/treestyletab/bookmarksOverlayEditable.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/content/treestyletab/bookmarksOverlayEditable.js b/content/treestyletab/bookmarksOverlayEditable.js index c529c3fe..aa5b4299 100644 --- a/content/treestyletab/bookmarksOverlayEditable.js +++ b/content/treestyletab/bookmarksOverlayEditable.js @@ -218,11 +218,13 @@ var TreeStyleTabBookmarksServiceEditable = inherit(TreeStyleTabBookmarksService, this._doProgressivelyTimers[name] = window.setTimeout(progressiveIteration, interval); } } - catch(e if e instanceof StopIteration) { - aParams.onComplete(); - } catch(e) { - Components.utils.reportError(e); + if (e instanceof StopIteration) { + aParams.onComplete(); + } + else { + Components.utils.reportError(e); + } } finally { this._doProgressivelyTimers[name] = null;