Remove eager initialization of `_startupScripts` to enable lazy thread-safe initialization by xtqqczze · Pull Request #25767 · PowerShell/PowerShell
…d-safe initialization The field `_startupScripts` was being initialized at declaration, which prevented the `Interlocked.CompareExchange` logic in the `StartupScripts` property from ever executing. This change removes the eager initialization to allow proper lazy and thread-safe setup of the HashSet when the property is first accessed.
Copilot AI review requested due to automatic review settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters