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

investigate using private names instead of weak maps #3

Open
andreasgal opened this issue Mar 31, 2011 · 0 comments
Open

investigate using private names instead of weak maps #3

andreasgal opened this issue Mar 31, 2011 · 0 comments

Comments

@andreasgal
Copy link
Owner

I implemented a private name patch for FF, that works roughly like this:

var name = Name();
obj[name] = foo;

These names are not enumerated and there is no way to get to them without having access to the name instance. This might be more efficient than weak maps.

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