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

LibJS: Object.preventExtensions() / Reflect.preventExtensions() should not prevent overriding existing property values #2695

Closed
linusg opened this issue Jul 4, 2020 · 0 comments · Fixed by #2724

Comments

@linusg
Copy link
Member

linusg commented Jul 4, 2020

var o = {};
o.foo = 1;
Object.preventExtensions(o);
o.foo = 2;
// o.foo is still 1 but should be 2 - only adding new properties should be prevented!
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

Successfully merging a pull request may close this issue.

1 participant