{"action":"closed","issue":{"url":"https://api.github.com/repos/decaffeinate/decaffeinate/issues/566","repository_url":"https://api.github.com/repos/decaffeinate/decaffeinate","labels_url":"https://api.github.com/repos/decaffeinate/decaffeinate/issues/566/labels{/name}","comments_url":"https://api.github.com/repos/decaffeinate/decaffeinate/issues/566/comments","events_url":"https://api.github.com/repos/decaffeinate/decaffeinate/issues/566/events","html_url":"https://github.com/decaffeinate/decaffeinate/issues/566","id":191735155,"number":566,"title":"Incorrect output when attribute defined using 'unless' inside of an object","user":{"login":"Kequc","id":584075,"avatar_url":"https://avatars.githubusercontent.com/u/584075?v=3","gravatar_id":"","url":"https://api.github.com/users/Kequc","html_url":"https://github.com/Kequc","followers_url":"https://api.github.com/users/Kequc/followers","following_url":"https://api.github.com/users/Kequc/following{/other_user}","gists_url":"https://api.github.com/users/Kequc/gists{/gist_id}","starred_url":"https://api.github.com/users/Kequc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kequc/subscriptions","organizations_url":"https://api.github.com/users/Kequc/orgs","repos_url":"https://api.github.com/users/Kequc/repos","events_url":"https://api.github.com/users/Kequc/events{/privacy}","received_events_url":"https://api.github.com/users/Kequc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"alangpierce","id":211605,"avatar_url":"https://avatars.githubusercontent.com/u/211605?v=3","gravatar_id":"","url":"https://api.github.com/users/alangpierce","html_url":"https://github.com/alangpierce","followers_url":"https://api.github.com/users/alangpierce/followers","following_url":"https://api.github.com/users/alangpierce/following{/other_user}","gists_url":"https://api.github.com/users/alangpierce/gists{/gist_id}","starred_url":"https://api.github.com/users/alangpierce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangpierce/subscriptions","organizations_url":"https://api.github.com/users/alangpierce/orgs","repos_url":"https://api.github.com/users/alangpierce/repos","events_url":"https://api.github.com/users/alangpierce/events{/privacy}","received_events_url":"https://api.github.com/users/alangpierce/received_events","type":"User","site_admin":false},"assignees":[{"login":"alangpierce","id":211605,"avatar_url":"https://avatars.githubusercontent.com/u/211605?v=3","gravatar_id":"","url":"https://api.github.com/users/alangpierce","html_url":"https://github.com/alangpierce","followers_url":"https://api.github.com/users/alangpierce/followers","following_url":"https://api.github.com/users/alangpierce/following{/other_user}","gists_url":"https://api.github.com/users/alangpierce/gists{/gist_id}","starred_url":"https://api.github.com/users/alangpierce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangpierce/subscriptions","organizations_url":"https://api.github.com/users/alangpierce/orgs","repos_url":"https://api.github.com/users/alangpierce/repos","events_url":"https://api.github.com/users/alangpierce/events{/privacy}","received_events_url":"https://api.github.com/users/alangpierce/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-11-25T16:25:24Z","updated_at":"2016-11-26T05:08:36Z","closed_at":"2016-11-26T05:08:36Z","body":"Hello, there is an unfortunate reversal when defining an attribute using unless inside of an object.\r\n\r\n```coffee\r\nisValid = true\r\n\r\ntesting = {\r\n    test: \"Hello world\" unless isValid\r\n}\r\n```\r\n\r\nhttp://decaffeinate-project.org/repl/#?evaluate=false&stage=full&code=isValid%20%3D%20true%0A%0Atesting%20%3D%20%7B%0A%20%20%20%20test%3A%20%22Hello%20world%22%20unless%20isValid%0A%7D\r\n\r\nI get this output:\r\n\r\n```js\r\nlet isValid = true;\r\n\r\nlet testing = {\r\n    test: isValid ? \"Hello world\" : undefined\r\n};\r\n```\r\n\r\nHere's what I expect it to be instead:\r\n\r\n```js\r\nlet isValid = true;\r\n\r\nlet testing = {\r\n    test: isValid ? undefined : \"Hello world\"\r\n};\r\n```"}}
{"actor":{"display_login":"alangpierce"}}