Skip to content
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

Allow convertObjectToArray to handle objects with no prototype #507

Merged
merged 1 commit into from
Aug 12, 2017

Commits on Aug 12, 2017

  1. Allow convertObjectToArray to handle objects with no prototype

    Currently this method expects `hasOwnProperty` to exist on the passed object. By using the method on `Object.prototype` instead, objects created with `Object.create(null)` can also be properly handled.
    
    Ran into this bug trying to pass graphQL input objects (heavily uses `Object.create(null)`) directly to hmset commands
    
    Use call
    southpolesteve committed Aug 12, 2017
    Configuration menu
    Copy the full SHA
    3bf6a9b View commit details
    Browse the repository at this point in the history