mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 09:32:28 +01:00
Replace Array.slice conversions of the arguments object with rest parameters.
This commit is contained in:
4
common/bootstrap.js
vendored
4
common/bootstrap.js
vendored
@@ -37,9 +37,9 @@ function reportError(e) {
|
||||
Cc["@mozilla.org/consoleservice;1"].getService(Ci.nsIConsoleService)
|
||||
.logStringMessage(stack);
|
||||
}
|
||||
function debug() {
|
||||
function debug(...args) {
|
||||
if (DEBUG)
|
||||
dump(name + ": " + Array.join(arguments, ", ") + "\n");
|
||||
dump(name + ": " + args.join(", ") + "\n");
|
||||
}
|
||||
|
||||
function httpGet(uri) {
|
||||
|
||||
Reference in New Issue
Block a user