{"action":"created","issue":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1488","repository_url":"https://api.github.com/repos/mishoo/UglifyJS2","labels_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1488/labels{/name}","comments_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1488/comments","events_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1488/events","html_url":"https://github.com/mishoo/UglifyJS2/pull/1488","id":207423736,"number":1488,"title":"remove extraneous spaces between ++/+/--/-","user":{"login":"alexlamsl","id":1898413,"avatar_url":"https://avatars.githubusercontent.com/u/1898413?v=3","gravatar_id":"","url":"https://api.github.com/users/alexlamsl","html_url":"https://github.com/alexlamsl","followers_url":"https://api.github.com/users/alexlamsl/followers","following_url":"https://api.github.com/users/alexlamsl/following{/other_user}","gists_url":"https://api.github.com/users/alexlamsl/gists{/gist_id}","starred_url":"https://api.github.com/users/alexlamsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexlamsl/subscriptions","organizations_url":"https://api.github.com/users/alexlamsl/orgs","repos_url":"https://api.github.com/users/alexlamsl/repos","events_url":"https://api.github.com/users/alexlamsl/events{/privacy}","received_events_url":"https://api.github.com/users/alexlamsl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-02-14T05:43:30Z","updated_at":"2017-02-15T17:49:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/pulls/1488","html_url":"https://github.com/mishoo/UglifyJS2/pull/1488","diff_url":"https://github.com/mishoo/UglifyJS2/pull/1488.diff","patch_url":"https://github.com/mishoo/UglifyJS2/pull/1488.patch"},"body":"fixes #1377\r\n\r\nI used the following to test on IE8, which is a modified version of the new test included in this PR:\r\n```html\r\n<html>\r\n<body>\r\n<script>\r\nfunction evaluate(exp) {\r\n  try {\r\n    return new Function(\"var a=1,b=2,c=\" + exp + \";return{a:a,b:b,c:c}\")();\r\n  } catch (e) {\r\n    return false;\r\n  }\r\n}\r\n\r\ndocument.write(\"<pre>\");\r\nvar unary = [\"++a\", \"--a\", \"+a\", \"-a\", \"a\", \"a--\", \"a++\"];\r\nvar binary = [\"+\", \"-\"];\r\nfor (var i = 0; i < unary.length; i++) {\r\n  var a = unary[i];\r\n  for (var j = 0; j < binary.length; j++) {\r\n    var op = binary[j];\r\n    for (var k = 0; k < unary.length; k++) {\r\n      var parts = [a, op, unary[k].replace(/a/, \"b\")];\r\n      document.write(parts.join(\" \"));\r\n      var e = evaluate(parts.join(\" \"));\r\n      var f = evaluate(parts.join(\"\"));\r\n      if (e.a !== f.a || e.b !== f.b || e.c !== f.c) {\r\n        document.write(\" <font color=red>FAILED!</font>\");\r\n      }\r\n      document.write(\"\\n\");\r\n    }\r\n  }\r\n}\r\ndocument.write(\"</pre><p>Test completed.</p>\");\r\n</script>\r\n</body>\r\n</html>\r\n```"},"comment":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/comments/280084836","html_url":"https://github.com/mishoo/UglifyJS2/pull/1488#issuecomment-280084836","issue_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1488","id":280084836,"user":{"login":"kzc","id":11593452,"avatar_url":"https://avatars.githubusercontent.com/u/11593452?v=3","gravatar_id":"","url":"https://api.github.com/users/kzc","html_url":"https://github.com/kzc","followers_url":"https://api.github.com/users/kzc/followers","following_url":"https://api.github.com/users/kzc/following{/other_user}","gists_url":"https://api.github.com/users/kzc/gists{/gist_id}","starred_url":"https://api.github.com/users/kzc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzc/subscriptions","organizations_url":"https://api.github.com/users/kzc/orgs","repos_url":"https://api.github.com/users/kzc/repos","events_url":"https://api.github.com/users/kzc/events{/privacy}","received_events_url":"https://api.github.com/users/kzc/received_events","type":"User","site_admin":false},"created_at":"2017-02-15T17:49:21Z","updated_at":"2017-02-15T17:49:21Z","body":"I see that writing tests can take 10 times as much time as the fix itself. :-)"}}
{"actor":{"display_login":"kzc"}}