mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
3958d5d84b
This ensures that if the name is set manually after the declaration, then we get that name when we log the value. For example Node.js `Response` is declared as `_Response` and then later assigned a new name. We should probably really serialize all static enumerable properties but "name" is non-enumerable so it's still a special case.