Skip to content

investigate using private names instead of weak maps #3

@andreasgal

Description

@andreasgal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions