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

Managed properties overwrite ignored #4

Open
AFatNiBBa opened this issue Sep 4, 2021 · 0 comments
Open

Managed properties overwrite ignored #4

AFatNiBBa opened this issue Sep 4, 2021 · 0 comments

Comments

@AFatNiBBa
Copy link
Owner

On an object of a special class, if you add a custom property with a key which is one of those that the special class uses by default, then that property may be skipped (Look at [ ...uneval.utils.managedProtos.keys() ].map(x => x.constructor.name) for a full list)

const a = function b() {};
a.name = { a: 1 };
console.log(eval(uneval(a)).name); // b

Generated Source:

(function b() {})
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