You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
436 B
16 lines
436 B
'use strict';
|
|
|
|
var betterStackTraces = /development/i.test(process.env.NODE_ENV) || /\bredis\b/i.test(process.env.NODE_DEBUG);
|
|
|
|
function Command (command, args, callback, call_on_write) {
|
|
this.command = command;
|
|
this.args = args;
|
|
this.buffer_args = false;
|
|
this.callback = callback;
|
|
this.call_on_write = call_on_write;
|
|
if (betterStackTraces) {
|
|
this.error = new Error();
|
|
}
|
|
}
|
|
|
|
module.exports = Command;
|