Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Use symbols if env supports them when attaching properties to foreign objects #172

@matthewjh

Description

@matthewjh

e.g. in https://github.com/angular/zone.js/blob/master/lib/utils.js#L91 properties such as _fn, _addEventListener are attached to foreign objects which risks interactions with any other libraries that may also be using these properties.

I think we could use Symbols if the environment supports them, with strings as a fallback, to attach/read these properties.

@vicb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions