{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/7188","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/7188/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/7188/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/7188/events","html_url":"https://github.com/nodejs/node/issues/7188","id":158845326,"number":7188,"title":"Strange REPL behavior","user":{"login":"zweifisch","id":447862,"avatar_url":"https://avatars.githubusercontent.com/u/447862?v=3","gravatar_id":"","url":"https://api.github.com/users/zweifisch","html_url":"https://github.com/zweifisch","followers_url":"https://api.github.com/users/zweifisch/followers","following_url":"https://api.github.com/users/zweifisch/following{/other_user}","gists_url":"https://api.github.com/users/zweifisch/gists{/gist_id}","starred_url":"https://api.github.com/users/zweifisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zweifisch/subscriptions","organizations_url":"https://api.github.com/users/zweifisch/orgs","repos_url":"https://api.github.com/users/zweifisch/repos","events_url":"https://api.github.com/users/zweifisch/events{/privacy}","received_events_url":"https://api.github.com/users/zweifisch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/repl","name":"repl","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-07T06:00:45Z","updated_at":"2016-06-07T06:59:28Z","closed_at":null,"body":"<!--\r\nThank you for reporting an issue. Please fill in the template below. If unsure\r\nabout something, just do as best as you're able.\r\n\r\nVersion: usually output of `node -v`\r\nPlatform: either `uname -a` output, or if Windows, version and 32 or 64-bit\r\nSubsystem: if known, please specify affected core module name\r\n\r\nIf possible, please provide code that demonstrates the problem, keeping it as\r\nsimple and free of external dependencies as you are able.\r\n-->\r\n\r\n* **v6.2.0**:\r\n* **Linux**:\r\n\r\n<!-- Enter your issue details below this comment. -->\r\n\r\n```\r\n> {a: {b: 0}}\r\n{ a: { b: 0 } }\r\n> {a: {b: 0}};\r\n0\r\n```\r\n\r\n```\r\n> {a: () => 0, b: () => 0}\r\n{ a: [Function], b: [Function] }\r\n> {a: () => 0, b: () => 0};\r\n...\r\n...\r\n...\r\n```"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/224196589","html_url":"https://github.com/nodejs/node/issues/7188#issuecomment-224196589","issue_url":"https://api.github.com/repos/nodejs/node/issues/7188","id":224196589,"user":{"login":"mscdex","id":54666,"avatar_url":"https://avatars.githubusercontent.com/u/54666?v=3","gravatar_id":"","url":"https://api.github.com/users/mscdex","html_url":"https://github.com/mscdex","followers_url":"https://api.github.com/users/mscdex/followers","following_url":"https://api.github.com/users/mscdex/following{/other_user}","gists_url":"https://api.github.com/users/mscdex/gists{/gist_id}","starred_url":"https://api.github.com/users/mscdex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mscdex/subscriptions","organizations_url":"https://api.github.com/users/mscdex/orgs","repos_url":"https://api.github.com/users/mscdex/repos","events_url":"https://api.github.com/users/mscdex/events{/privacy}","received_events_url":"https://api.github.com/users/mscdex/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T06:59:28Z","updated_at":"2016-06-07T06:59:28Z","body":"In the first example, the reason for the `0` result is because when you add the semicolon, it is no longer interpreted as an object literal, but as a group of statements and `a:` and `b:` are then interpreted as labels and `0` being the literal value, which is the last value and is what is returned.\r\n\r\nIt's equivalent to this:\r\n\r\n```js\r\na:\r\nb:\r\n0;\r\n```\r\n\r\nThe second example is the same issue. The interpreter sees `a:` as a label and then expects more code because the rest of the line is not a complete statement."}}
{"actor":{"display_login":"mscdex"}}