{"action":"created","issue":{"url":"https://api.github.com/repos/devtools-html/debugger.html/issues/6107","repository_url":"https://api.github.com/repos/devtools-html/debugger.html","labels_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/6107/labels{/name}","comments_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/6107/comments","events_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/6107/events","html_url":"https://github.com/devtools-html/debugger.html/issues/6107","id":318015359,"number":6107,"title":"Maps and Sets `<entries>` node should be automatically expanded","user":{"login":"nchevobbe","id":578107,"avatar_url":"https://avatars3.githubusercontent.com/u/578107?v=4","gravatar_id":"","url":"https://api.github.com/users/nchevobbe","html_url":"https://github.com/nchevobbe","followers_url":"https://api.github.com/users/nchevobbe/followers","following_url":"https://api.github.com/users/nchevobbe/following{/other_user}","gists_url":"https://api.github.com/users/nchevobbe/gists{/gist_id}","starred_url":"https://api.github.com/users/nchevobbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nchevobbe/subscriptions","organizations_url":"https://api.github.com/users/nchevobbe/orgs","repos_url":"https://api.github.com/users/nchevobbe/repos","events_url":"https://api.github.com/users/nchevobbe/events{/privacy}","received_events_url":"https://api.github.com/users/nchevobbe/received_events","type":"User","site_admin":false},"labels":[{"id":914808520,"url":"https://api.github.com/repos/devtools-html/debugger.html/labels/devtools-reps","name":"devtools-reps","color":"ededed","default":false},{"id":669449515,"url":"https://api.github.com/repos/devtools-html/debugger.html/labels/not-available","name":"not-available","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-04-26T12:50:33Z","updated_at":"2018-04-26T12:50:39Z","closed_at":null,"author_association":"MEMBER","body":"_From @julienw on March 29, 2018 8:13_\n\nSTR:\r\n1. run this in the console:\r\n```javascript\r\nvar map = new Map(); for (var i = 0; i < 20; i++) { map.set('foo' + i, 'bar' + i); } map\r\n```\r\n=> We see some data but not all. But in other contexts, like in the debugger's scopes panel, we don't see the data.\r\n2. Expands the map.\r\n=> We still don't see the data. What we see is some useless information: size (ok, we know it already, it's written on the first line), prototype (useless in this case), and \"entries\" that is expandable.\r\n3. Expands entries\r\n=> _now_ we see the data.\r\n\r\n2 clicks to access the data is 1 useless extra click.\r\n\r\nThe same happens for Sets with:\r\n```javascript\r\nvar set = new Set(); for (var i = 0; i < 20; i++) { set.add('foo' + i); } set\r\n```\r\n\r\nAfter discussing this with @jasonLaster we thought that Maps could be displayed as Objects, while Sets could be displayed as Arrays. That is, without the step 2.\n\n_Copied from original issue: devtools-html/devtools-core#1016_"},"comment":{"url":"https://api.github.com/repos/devtools-html/debugger.html/issues/comments/384629476","html_url":"https://github.com/devtools-html/debugger.html/issues/6107#issuecomment-384629476","issue_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/6107","id":384629476,"user":{"login":"nchevobbe","id":578107,"avatar_url":"https://avatars3.githubusercontent.com/u/578107?v=4","gravatar_id":"","url":"https://api.github.com/users/nchevobbe","html_url":"https://github.com/nchevobbe","followers_url":"https://api.github.com/users/nchevobbe/followers","following_url":"https://api.github.com/users/nchevobbe/following{/other_user}","gists_url":"https://api.github.com/users/nchevobbe/gists{/gist_id}","starred_url":"https://api.github.com/users/nchevobbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nchevobbe/subscriptions","organizations_url":"https://api.github.com/users/nchevobbe/orgs","repos_url":"https://api.github.com/users/nchevobbe/repos","events_url":"https://api.github.com/users/nchevobbe/events{/privacy}","received_events_url":"https://api.github.com/users/nchevobbe/received_events","type":"User","site_admin":false},"created_at":"2018-04-26T12:50:39Z","updated_at":"2018-04-26T12:50:39Z","author_association":"MEMBER","body":"I changed the title of the issue to automatically expand the `<entries>` node for Maps and Sets, which should help browsing them."}}
{"actor":{"display_login":"nchevobbe"}}