Skip to content

[BUGFIX beta] Fix cycle detection in Ember.copy#17220

Merged
rwjblue merged 1 commit intoemberjs:masterfrom
hjdivad:hjdivad/fix-cycle-detection-in-deep-copy
Nov 22, 2018
Merged

[BUGFIX beta] Fix cycle detection in Ember.copy#17220
rwjblue merged 1 commit intoemberjs:masterfrom
hjdivad:hjdivad/fix-cycle-detection-in-deep-copy

Conversation

@hjdivad
Copy link
Member

@hjdivad hjdivad commented Nov 22, 2018

Previously, key iteration in objects would recurse prior to updating seen and therefore miss the cycle check in the recursive call, leading to stack overflows.

@hjdivad hjdivad requested a review from rwjblue November 22, 2018 01:03
@hjdivad
Copy link
Member Author

hjdivad commented Nov 22, 2018

@rwjblue i presume [BUGFIX beta] is appropriate here?

hjdivad added a commit to hjdivad/ember-copy that referenced this pull request Nov 22, 2018
hjdivad added a commit to hjdivad/ember-copy that referenced this pull request Nov 22, 2018
Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!!

@rwjblue rwjblue merged commit 3f5c80a into emberjs:master Nov 22, 2018
@hjdivad hjdivad deleted the hjdivad/fix-cycle-detection-in-deep-copy branch November 26, 2018 17:19
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 this pull request may close these issues.

2 participants