Skip to content

argument mutation - breaking old code #866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
palamccc opened this issue Sep 23, 2015 · 2 comments
Closed

argument mutation - breaking old code #866

palamccc opened this issue Sep 23, 2015 · 2 comments
Labels

Comments

@palamccc
Copy link

v2.0.0 is mutating arguments, i think its anti-pattern, can you avoid it ?

var fields = ["a","b","c"];
hmget("key", fields, function(err,ret){
  console.log(fields); //prints ["key","a","b","c"]
})
@BridgeAR
Copy link
Contributor

I can't reproduce that.

@BridgeAR
Copy link
Contributor

Hm, you are actually right. This is something I did not think about earlier. I'll fix it tomorrow. Can't find the time today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants