Commit f821613
Fix use-after-move of ContextContainer in PointerEventsProcessorTest (#57812)
Summary:
Pull Request resolved: #57812
The whole `PointerEventsProcessorTest` suite has been aborting in its fixture constructor since the `modernize-use-designated-initializers` codemod moved the `ContextContainer` into `ComponentDescriptorParameters`. The `shared_ptr` is read twice more afterwards — once to construct the `UIManager` and once to construct the `ShadowTree` — so the move left both with a null container and the second read tripped the libstdc++ null-deref assert.
Stop moving out of a `shared_ptr` that is still needed by later statements.
Changelog: [Internal]
___
Differential Revision: D114730311
fbshipit-source-id: e7fe2b5bbc40dcbf9571cc917ec6e78baf49524a1 parent 65008fc commit f821613
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- packages/react-native/ReactCommon/react/renderer/uimanager/tests
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments