{"action":"created","issue":{"url":"https://api.github.com/repos/catapult-project/catapult/issues/1751","labels_url":"https://api.github.com/repos/catapult-project/catapult/issues/1751/labels{/name}","comments_url":"https://api.github.com/repos/catapult-project/catapult/issues/1751/comments","events_url":"https://api.github.com/repos/catapult-project/catapult/issues/1751/events","html_url":"https://github.com/catapult-project/catapult/issues/1751","id":115686468,"number":1751,"title":"Select samples causes a Uncaught TypeError","user":{"login":"lpy","id":1453861,"avatar_url":"https://avatars.githubusercontent.com/u/1453861?v=3","gravatar_id":"","url":"https://api.github.com/users/lpy","html_url":"https://github.com/lpy","followers_url":"https://api.github.com/users/lpy/followers","following_url":"https://api.github.com/users/lpy/following{/other_user}","gists_url":"https://api.github.com/users/lpy/gists{/gist_id}","starred_url":"https://api.github.com/users/lpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpy/subscriptions","organizations_url":"https://api.github.com/users/lpy/orgs","repos_url":"https://api.github.com/users/lpy/repos","events_url":"https://api.github.com/users/lpy/events{/privacy}","received_events_url":"https://api.github.com/users/lpy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/catapult-project/catapult/labels/Trace%20Viewer","name":"Trace Viewer","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-07T19:13:25Z","updated_at":"2015-11-07T19:22:49Z","closed_at":null,"body":"When I select a sample, I got a `Uncaught TypeError: currentNode.getOrCreateChild is not a function`.\r\n\r\nFrom what I found, it's because the code in [here](https://github.com/catapult-project/catapult/blob/master/tracing/tracing/ui/analysis/stack_frame_tree.html#L161), will return an empty object, because the title is `__proto__`, which was not supposed to be found in `this.childMap` and should be created.\r\n\r\nThe reason is that `childMap = {}` has `__proto__`.\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/catapult-project/catapult/issues/comments/154741132","html_url":"https://github.com/catapult-project/catapult/issues/1751#issuecomment-154741132","issue_url":"https://api.github.com/repos/catapult-project/catapult/issues/1751","id":154741132,"user":{"login":"lpy","id":1453861,"avatar_url":"https://avatars.githubusercontent.com/u/1453861?v=3","gravatar_id":"","url":"https://api.github.com/users/lpy","html_url":"https://github.com/lpy","followers_url":"https://api.github.com/users/lpy/followers","following_url":"https://api.github.com/users/lpy/following{/other_user}","gists_url":"https://api.github.com/users/lpy/gists{/gist_id}","starred_url":"https://api.github.com/users/lpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpy/subscriptions","organizations_url":"https://api.github.com/users/lpy/orgs","repos_url":"https://api.github.com/users/lpy/repos","events_url":"https://api.github.com/users/lpy/events{/privacy}","received_events_url":"https://api.github.com/users/lpy/received_events","type":"User","site_admin":false},"created_at":"2015-11-07T19:22:49Z","updated_at":"2015-11-07T19:22:49Z","body":"Please see the trace [here](https://github.com/catapult-project/catapult/issues/1741)"}}