mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-18 11:25:45 +01:00
Add :list* commands, linkify help tags in certain output, and augment :yank to accept JavaScript directly.
This commit is contained in:
@@ -30,7 +30,7 @@ memoize(this, "Commands", function () {
|
||||
|
||||
const FailedAssertion = Class("FailedAssertion", Error, {
|
||||
init: function (message) {
|
||||
this.message = message;
|
||||
update(this, Error(message))
|
||||
}
|
||||
});
|
||||
|
||||
@@ -102,7 +102,7 @@ const Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference])
|
||||
*/
|
||||
assert: function (condition, message) {
|
||||
if (!condition)
|
||||
throw new FailedAssertion(message);
|
||||
throw FailedAssertion(message);
|
||||
},
|
||||
|
||||
get chromePackages() {
|
||||
|
||||
Reference in New Issue
Block a user