{"action":"closed","issue":{"url":"https://api.github.com/repos/jlongster/prettier/issues/411","repository_url":"https://api.github.com/repos/jlongster/prettier","labels_url":"https://api.github.com/repos/jlongster/prettier/issues/411/labels{/name}","comments_url":"https://api.github.com/repos/jlongster/prettier/issues/411/comments","events_url":"https://api.github.com/repos/jlongster/prettier/issues/411/events","html_url":"https://github.com/jlongster/prettier/issues/411","id":202423690,"number":411,"title":"Missing parenthesis around yield in conditional","user":{"login":"vjeux","id":197597,"avatar_url":"https://avatars.githubusercontent.com/u/197597?v=3","gravatar_id":"","url":"https://api.github.com/users/vjeux","html_url":"https://github.com/vjeux","followers_url":"https://api.github.com/users/vjeux/followers","following_url":"https://api.github.com/users/vjeux/following{/other_user}","gists_url":"https://api.github.com/users/vjeux/gists{/gist_id}","starred_url":"https://api.github.com/users/vjeux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjeux/subscriptions","organizations_url":"https://api.github.com/users/vjeux/orgs","repos_url":"https://api.github.com/users/vjeux/repos","events_url":"https://api.github.com/users/vjeux/events{/privacy}","received_events_url":"https://api.github.com/users/vjeux/received_events","type":"User","site_admin":false},"labels":[{"id":491115803,"url":"https://api.github.com/repos/jlongster/prettier/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-23T00:29:27Z","updated_at":"2017-01-23T03:03:44Z","closed_at":"2017-01-23T03:03:44Z","body":"```js\r\nfunction* f() {\r\n  a = (yield) ? null : null;\r\n}\r\n```\r\n\r\noutputs\r\n\r\n```js\r\nfunction* f() {\r\n  a = yield ? null : null;\r\n}\r\n```\r\n\r\nwhich is invalid\r\n\r\nhttps://jlongster.github.io/prettier/#%7B%22content%22%3A%22function*%20f()%20%7B%5Cn%20%20a%20%3D%20(yield)%20%3F%20null%20%3A%20null%3B%5Cn%7D%5Cn%22%2C%22options%22%3A%7B%22printWidth%22%3A80%2C%22tabWidth%22%3A2%2C%22singleQuote%22%3Afalse%2C%22trailingComma%22%3Afalse%2C%22bracketSpacing%22%3Afalse%2C%22doc%22%3Afalse%7D%7D"}}
{"actor":{"display_login":"vjeux"}}