Skip to content

Commit

Permalink
Merge pull request #882 from SimonSchick/fix/calee
Browse files Browse the repository at this point in the history
fix(debug): remove usage of callee
  • Loading branch information
sidorares authored Nov 16, 2018
2 parents 4b0b8a5 + 53d076e commit 392e9a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,10 @@ class Connection extends EventEmitter {
// this.compressedSequenceId = 0;
// this.sequenceId = 0;
if (this.config.debug) {
const commandName = cmd.constructor.name;
// eslint-disable-next-line no-console
console.log('Add command: ' + arguments.callee.caller.name);
cmd._commandName = arguments.callee.caller.name;
console.log('Add command: ' + commandName);
cmd._commandName = commandName;
}
if (!this._command) {
this._command = cmd;
Expand Down

0 comments on commit 392e9a1

Please sign in to comment.