You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You’re totally right! See #8071 for some previous discussion on that. In short, we do support Symbol-based inspection now, and it can even be used to override the “inspect” name.
Unfortunately, getting rid of “inspect” as the name for the method is not too easy due to the required backwards compatibility – “inspect” is a lot older than Symbols in Javascript, so back then the choice made sense, and by now a lot of people have come to rely on that behaviour.
If you have any suggestions for improving the situation that are not breaking changes, that would be hugely appreciated.
=> [ Promise { < pending > } ] !!!
I've found the reason here: Custom inspection functions on Objects
What a bad idea !!! It's a real bug factory
To add such features without being intrusive, your syntax should look like:
The text was updated successfully, but these errors were encountered: