mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
f06b96d181
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