vConsole
vConsole copied to clipboard
`Symbol.toStringTag` support is missing
trafficstars
vConsole Version: 3.15.0
ignores Symbol.toStringTag
const user = {
firstName: 'John',
lastName: 'Doe',
[Symbol.toStringTag]: 'User',
}; user
vConsole ❌ | ✔️ Chrome DevTools

Please add support for this!
Add support for
- [ ]
Set - [ ]
Map - [ ]
Request - [ ]
Headers - [ ]
Response
You can see these properties after expanding
@Maizify – It should do so before expanding to better match native consoles, otherwise vConsole is not doing a good job (of virtualizing).
Given,
const user = {
firstName: 'John',
lastName: 'Doe',
[Symbol.toStringTag]: 'User',
}; user
- vConsole output just reads
Object {firstName: "John", lastName: "Doe"}without expanding the object! - native console output reads
User {firstName: "John", ...even without expanding.
Native consoles also output Set, Map, Request, Headers, and Response better than vConsole.
@Maizify – see https://github.com/liriliri/eruda