{"action":"created","issue":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/744","labels_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/744/labels{/name}","comments_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/744/comments","events_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/744/events","html_url":"https://github.com/mishoo/UglifyJS2/issues/744","id":90747483,"number":744,"title":"Removing parenthesis in JS math breaks order of intended operation","user":{"login":"rafde","id":833429,"avatar_url":"https://avatars.githubusercontent.com/u/833429?v=3","gravatar_id":"","url":"https://api.github.com/users/rafde","html_url":"https://github.com/rafde","followers_url":"https://api.github.com/users/rafde/followers","following_url":"https://api.github.com/users/rafde/following{/other_user}","gists_url":"https://api.github.com/users/rafde/gists{/gist_id}","starred_url":"https://api.github.com/users/rafde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafde/subscriptions","organizations_url":"https://api.github.com/users/rafde/orgs","repos_url":"https://api.github.com/users/rafde/repos","events_url":"https://api.github.com/users/rafde/events{/privacy}","received_events_url":"https://api.github.com/users/rafde/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-06-24T18:04:49Z","updated_at":"2015-06-30T07:11:34Z","closed_at":"2015-06-30T07:10:58Z","body":"I stumbled on an issue when minifying numeral's source code (the issue also appears in the min file) and created an issue here:\r\nhttps://github.com/foretagsplatsen/numbro/issues/64\r\n\r\nwhen code that looks like this:\r\n```\r\nvar corrFactor = correctionFactor(accum, curr);\r\nreturn (accum * corrFactor) * (curr * corrFactor) /\r\n    (corrFactor * corrFactor);\r\n```\r\nGets transformed to this:\r\n```\r\nvar c = l(a, b);\r\n          return a * c * b * c / (\r\n            c * c)\r\n```\r\nwhere `a * c * b * c ` lost the intended order that should look like `(a * c) * (b * c) `.\r\n\r\nMaybe it can keep the parenthesis if the value is followed by operators \r\nthat have high precedence like `*`, `\\`, etc.\r\n"},"comment":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/comments/117029524","html_url":"https://github.com/mishoo/UglifyJS2/issues/744#issuecomment-117029524","issue_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/744","id":117029524,"user":{"login":"mishoo","id":334725,"avatar_url":"https://avatars.githubusercontent.com/u/334725?v=3","gravatar_id":"","url":"https://api.github.com/users/mishoo","html_url":"https://github.com/mishoo","followers_url":"https://api.github.com/users/mishoo/followers","following_url":"https://api.github.com/users/mishoo/following{/other_user}","gists_url":"https://api.github.com/users/mishoo/gists{/gist_id}","starred_url":"https://api.github.com/users/mishoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mishoo/subscriptions","organizations_url":"https://api.github.com/users/mishoo/orgs","repos_url":"https://api.github.com/users/mishoo/repos","events_url":"https://api.github.com/users/mishoo/events{/privacy}","received_events_url":"https://api.github.com/users/mishoo/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T07:11:34Z","updated_at":"2015-06-30T07:11:34Z","body":"@kzc I applied your patch, looks like the right thing to do.  Thanks!"}}