[Pkg-mozext-commits] [requestpolicy] 198/257: [fix] oldrules: catch condition "e.name"
David Prévot
taffit at moszumanska.debian.org
Thu Jan 28 03:20:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository requestpolicy.
commit f439af073e7c17d9826890a4a6d3462ee8354c72
Author: Martin Kimmerle <dev at 256k.de>
Date: Sun Dec 6 11:50:18 2015 +0100
[fix] oldrules: catch condition "e.name"
---
src/content/lib/old-rules.jsm | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/content/lib/old-rules.jsm b/src/content/lib/old-rules.jsm
index 6c10bb2..76d6e56 100644
--- a/src/content/lib/old-rules.jsm
+++ b/src/content/lib/old-rules.jsm
@@ -22,7 +22,7 @@
*/
/* global Components */
-const {interfaces: Ci, results: Cr, utils: Cu} = Components;
+const {interfaces: Ci, utils: Cu} = Components;
/* exported OldRules, OldRulesParseError */
this.EXPORTED_SYMBOLS = ["OldRules", "OldRulesParseError"];
@@ -175,8 +175,7 @@ var OldRules = (function() {
try {
return rpPrefBranch.getComplexValue(aPrefName, Ci.nsISupportsString).data;
} catch (e) {
- if (false === e.hasOwnProperty("result") ||
- e.result !== Cr.NS_ERROR_UNEXPECTED) {
+ if (e.name !== "NS_ERROR_UNEXPECTED") {
Cu.reportError(e);
}
return "";
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git
More information about the Pkg-mozext-commits
mailing list