[gnome-sound-recorder/35-remove-conditional-catch-statements] Remove usage of conditional catch statements
- From: Tim Lunn <timl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder/35-remove-conditional-catch-statements] Remove usage of conditional catch statements
- Date: Wed, 12 Sep 2018 11:55:46 +0000 (UTC)
commit a3a2892bac17b7b37ed5f7d8125b1b861d684d03
Author: Tim Lunn <tim feathertop org>
Date: Mon Sep 10 18:02:03 2018 +1000
Remove usage of conditional catch statements
The are no longer supported in mozjs60
Closes: https://gitlab.gnome.org/GNOME/gnome-documents/merge_requests/6
src/listview.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/listview.js b/src/listview.js
index 33cbec0..afe508a 100644
--- a/src/listview.js
+++ b/src/listview.js
@@ -111,7 +111,10 @@ const Listview = new Lang.Class({
if (returnedNumber > trackNumber)
trackNumber = returnedNumber;
- } catch (e if e instanceof TypeError) {
+ } catch (e) {
+ if (!e instanceof TypeError)
+ throw e;
+
log("Tracknumber not returned");
// Don't handle the error
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]