Visitar URL original
'toString' field removed from cloned object · Issue #105 · pvorb/clone · GitHub
Skip to content

'toString' field removed from cloned object #105

Open

Description

@assafey

Cloning an object that includes field 'toString' will have the following affect:
before clone:

[ { a: 'aaa', toString: 'bbb' }, { a: 'ccc', toString: 'ddd' } ]

after clone:

[ { a: 'aaa' }, { a: 'ccc' } ]

'toString' field is removed from cloned object.

Activity

  1. rictic commented on May 31, 2019

    @rictic
    Contributor

    Could use hasOwnProperty to tell if a field from Object is being overwritten on the clonee.

  2. assafey commented on Jun 1, 2019

    @assafey
    Author

    @rictic not sure I’m following you. Is it a workaround?

  3. JacobMisirian commented on Aug 11, 2019

    @JacobMisirian

    Bump on this, this issue is hanging me up on the development of my programming language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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