diff options
author | Kris Maglione <maglione.k@gmail.com> | 2010-12-25 06:58:27 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2010-12-25 06:58:27 -0500 |
commit | 53786141e15ff45056e641d5fe29b6170f6a7361 (patch) | |
tree | 5208a92c5ab01599c81fbd31a4086772d20cec49 /common/modules/util.jsm | |
parent | 89ec0f4d4f38cedc13e09306e5d01744866ea881 (diff) | |
parent | 273796d321e4763859e39bc790c710e303822b90 (diff) | |
download | pentadactyl-53786141e15ff45056e641d5fe29b6170f6a7361.tar.gz |
[bootstrap] Merge default.
--HG--
branch : bootstrapped
Diffstat (limited to 'common/modules/util.jsm')
-rw-r--r-- | common/modules/util.jsm | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/common/modules/util.jsm b/common/modules/util.jsm index 8a5c6471..88f2de29 100644 --- a/common/modules/util.jsm +++ b/common/modules/util.jsm @@ -28,12 +28,7 @@ memoize(this, "Commands", function () { return obj.Commands; }); -const FailedAssertion = Class("FailedAssertion", Error, { - init: function (message) { - update(this, Error(message)) - this.message = message; - } -}); +const FailedAssertion = Class("FailedAssertion", ErrorBase); function wrapCallback(fn) fn.wrapper = function wrappedCallback () { @@ -126,7 +121,7 @@ const Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]) */ assert: function (condition, message) { if (!condition) - throw FailedAssertion(message); + throw FailedAssertion(message, 1); }, get chromePackages() { |