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

TypeError: Cannot read property 'mac' of undefined #36

Open
s4uron opened this issue Feb 8, 2021 · 0 comments
Open

TypeError: Cannot read property 'mac' of undefined #36

s4uron opened this issue Feb 8, 2021 · 0 comments

Comments

@s4uron
Copy link
Contributor

s4uron commented Feb 8, 2021

If I add an Object.prototype function to my project, I get this error.

Example function to reproduce:

Object.prototype.pickProperties = function(keys) {
console.log("called!");
var clone = {};
for(var i = 0; i < keys.length; i++) {
var key = keys[i];
if(this.hasOwnProperty(key)) {
clone[key] = this[key];
}
}
return clone;
};

TypeError: Cannot read property 'mac' of undefined
at Object. (...\node_modules\uniqid\index.js:22:36)

I'm using the latest Version: uniqid@5.2.0

@s4uron s4uron mentioned this issue Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant