mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
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.