{"action":"created","issue":{"url":"https://api.github.com/repos/campd/valence/issues/176","labels_url":"https://api.github.com/repos/campd/valence/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/campd/valence/issues/176/comments","events_url":"https://api.github.com/repos/campd/valence/issues/176/events","html_url":"https://github.com/campd/valence/pull/176","id":65226271,"number":176,"title":"Implement support for $_","user":{"login":"past","id":49118,"avatar_url":"https://avatars.githubusercontent.com/u/49118?v=3","gravatar_id":"","url":"https://api.github.com/users/past","html_url":"https://github.com/past","followers_url":"https://api.github.com/users/past/followers","following_url":"https://api.github.com/users/past/following{/other_user}","gists_url":"https://api.github.com/users/past/gists{/gist_id}","starred_url":"https://api.github.com/users/past/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/past/subscriptions","organizations_url":"https://api.github.com/users/past/orgs","repos_url":"https://api.github.com/users/past/repos","events_url":"https://api.github.com/users/past/events{/privacy}","received_events_url":"https://api.github.com/users/past/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-30T14:34:28Z","updated_at":"2015-04-02T13:44:27Z","closed_at":"2015-04-02T13:44:27Z","pull_request":{"url":"https://api.github.com/repos/campd/valence/pulls/176","html_url":"https://github.com/campd/valence/pull/176","diff_url":"https://github.com/campd/valence/pull/176.diff","patch_url":"https://github.com/campd/valence/pull/176.patch"},"body":"The WebKit protocol has some limited support to set $_ that we can use. Unfortunately it doesn't work with primitive values, so in this patch I just use an error message to explain what happened.\r\n\r\nI tried boxing primitives to cover more cases, but the console displays boxed values different than primitive values and it was confusing. On the other hand if people mainly don't just inspect $_, but use it in expressions, it might be not that bad (or even worse). Since this solution wouldn't cover null and undefined, I decided to play it safe.\r\n\r\n@bgrins what do you think?"},"comment":{"url":"https://api.github.com/repos/campd/valence/issues/comments/88906847","html_url":"https://github.com/campd/valence/pull/176#issuecomment-88906847","issue_url":"https://api.github.com/repos/campd/valence/issues/176","id":88906847,"user":{"login":"past","id":49118,"avatar_url":"https://avatars.githubusercontent.com/u/49118?v=3","gravatar_id":"","url":"https://api.github.com/users/past","html_url":"https://github.com/past","followers_url":"https://api.github.com/users/past/followers","following_url":"https://api.github.com/users/past/following{/other_user}","gists_url":"https://api.github.com/users/past/gists{/gist_id}","starred_url":"https://api.github.com/users/past/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/past/subscriptions","organizations_url":"https://api.github.com/users/past/orgs","repos_url":"https://api.github.com/users/past/repos","events_url":"https://api.github.com/users/past/events{/privacy}","received_events_url":"https://api.github.com/users/past/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T13:44:27Z","updated_at":"2015-04-02T13:44:27Z","body":"Unfortunately they decided to remove the Console.setLastEvaluationResult method from their API:\r\n\r\nhttps://codereview.chromium.org/967493002/\r\n\r\nTherefore this approach is a no go. Closing."}}