1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00
Files
node-redis/lib/command.js
Ruben Bridgewater b2613b2270 test fixup
2017-05-06 08:16:19 +02:00

17 lines
404 B
JavaScript

'use strict'
const betterStackTraces = /development/i.test(process.env.NODE_ENV) || /\bredis\b/i.test(process.env.NODE_DEBUG)
function Command (command, args, callback, callOnWrite) {
this.command = command
this.args = args
this.bufferArgs = false
this.callback = callback
this.callOnWrite = callOnWrite
if (betterStackTraces) {
this.error = new Error()
}
}
module.exports = Command