mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-17 09:35:47 +01:00
Add a half slew of generic command execution/completion/code coverage tests. Add unhandled exception checking to tests. Fix some detected merge artifacts.
This commit is contained in:
@@ -1344,13 +1344,16 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
});
|
||||
},
|
||||
|
||||
maxErrors: 15,
|
||||
errorCount: 0,
|
||||
errors: Class.memoize(function () []),
|
||||
maxErrors: 15,
|
||||
reportError: function (error) {
|
||||
if (Cu.reportError)
|
||||
Cu.reportError(error);
|
||||
|
||||
try {
|
||||
this.errorCount++;
|
||||
|
||||
let obj = update({}, error, {
|
||||
toString: function () String(error),
|
||||
stack: <>{util.stackLines(String(error.stack || Error().stack)).join("\n").replace(/^/mg, "\t")}</>
|
||||
|
||||
Reference in New Issue
Block a user