ITADN

🐛 Fix hasOwn function implementation to ensure proper property checking

#695Pull Requestwelkinwong 创建于 2025-05-14已合并
W
welkinwongcommented
In browsers that lack native `Object.hasOwn` support, assigning `Object.prototype.hasOwnProperty.call` to a variable (e.g., hasOwn = `Object.prototype.hasOwnProperty.call`) detaches the `call` method from its original function context. This results in a runtime error: `hasOwn is not a function`. ![image](https://github.com/user-attachments/assets/5a89e31b-bb06-4f9b-83fd-2f785f4dd1f2) ![image](https://github.com/user-attachments/assets/aa399587-2112-472f-956e-cda77a19e466)
合并状态:已合并 合并于 2025-05-20 关闭于 2025-05-20 1 条评论