Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Proxy items need to be more resilient to unexpected properties #1639

Merged
merged 3 commits into from
Aug 13, 2018

Conversation

smashwilson
Copy link
Contributor

One of the Atom main process tests triggered a race condition in the Proxy we construct as an "item" to pass to the Atom API in PaneItem. A code path that iterated over the pane items in the workspace caused underscore.js to look for the .length property on every item, but that caused our Proxy to throw because its component RefHolder was still empty.

I'm armoring the Proxy items against empty holders to prevent this and turn it into a no-op.

@smashwilson smashwilson added this to In Progress 🔧 in Stability Sprint : 23 July - 3 August 2018 : v0.19.0 via automation Aug 13, 2018
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 80.215% when pulling 006671f on aw/atom-test-failure into ba551f6 on master.

@coveralls
Copy link

coveralls commented Aug 13, 2018

Coverage Status

Coverage decreased (-0.06%) to 80.199% when pulling 7c802fb on aw/atom-test-failure into ba551f6 on master.

@smashwilson smashwilson merged commit 3aa914c into master Aug 13, 2018
Stability Sprint : 23 July - 3 August 2018 : v0.19.0 automation moved this from In Progress 🔧 to Merged ☑️ Aug 13, 2018
@smashwilson smashwilson deleted the aw/atom-test-failure branch August 13, 2018 19:46
smashwilson added a commit that referenced this pull request Aug 14, 2018
Proxy items need to be more resilient to unexpected properties
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants