Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

console.log doesn't show items of Set object #5

Open
edemaine opened this issue Jul 11, 2022 · 0 comments
Open

console.log doesn't show items of Set object #5

edemaine opened this issue Jul 11, 2022 · 0 comments

Comments

@edemaine
Copy link

Regarding src/console/Log.ts:

console.log(set) where set is a Set object renders as Set { }, even if set is nonempty. Clicking on that Set object shows the methods on Set, but still doesn't show the values (I guess because they're not enumerable properties). By contrast, Arrays render as Array [ item ] or (number) [ items ] (and can be further expanded).

You can see this in action on the SolidJS Playground (where I originally reported as solidjs/solid-playground#114): https://playground.solidjs.com/?hash=-1802735031&version=1.4.1

Would it be reasonable to add special-case support for Set and maybe Map like there is for Array, which shows the items via their iteration interface?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant