mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
Guard FormGroup control-map presence checks with safe own-property checks to avoid inherited/prototype collisions from reserved keys such as hasOwnProperty and toString. This prevents: - crashes from shadowed hasOwnProperty access paths - incorrect early-return and existence behavior for prototype-named controls Adds regression tests for prototype-shadowed keys covering: - register/add with toString - contains/get with hasOwnProperty - setControl/removeControl with toString - FormRecord behavior with hasOwnProperty