{"action":"created","issue":{"url":"https://api.github.com/repos/dherman/asm.js/issues/86","labels_url":"https://api.github.com/repos/dherman/asm.js/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/dherman/asm.js/issues/86/comments","events_url":"https://api.github.com/repos/dherman/asm.js/issues/86/events","html_url":"https://github.com/dherman/asm.js/issues/86","id":34134830,"number":86,"title":"`if` fails the validator: `types` does not exist","user":{"login":"amadanmath","id":134244,"avatar_url":"https://avatars.githubusercontent.com/u/134244?v=3","gravatar_id":"","url":"https://api.github.com/users/amadanmath","html_url":"https://github.com/amadanmath","followers_url":"https://api.github.com/users/amadanmath/followers","following_url":"https://api.github.com/users/amadanmath/following{/other_user}","gists_url":"https://api.github.com/users/amadanmath/gists{/gist_id}","starred_url":"https://api.github.com/users/amadanmath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amadanmath/subscriptions","organizations_url":"https://api.github.com/users/amadanmath/orgs","repos_url":"https://api.github.com/users/amadanmath/repos","events_url":"https://api.github.com/users/amadanmath/events{/privacy}","received_events_url":"https://api.github.com/users/amadanmath/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dherman/asm.js/labels/validator","name":"validator","color":"FF8000"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-05-23T00:47:26Z","updated_at":"2015-01-06T08:09:05Z","closed_at":null,"body":"If the code includes an `if`, the validator errors out, due to this line in `Vp.ifStatement`:\r\n\r\n    this.checkSubtype(this.expression(test), types.boolish, \"if test\", test.loc);\r\n\r\nThe variable `types` does not exist. I believe one wants `ty` instead; and `ty` does not contain `boolish` nor `Boolish`. It was probably missed in 182e4b9efe556f205e33be1f9357938a41ebbbe3 and should be `ty.Intish`?"},"comment":{"url":"https://api.github.com/repos/dherman/asm.js/issues/comments/68837147","html_url":"https://github.com/dherman/asm.js/issues/86#issuecomment-68837147","issue_url":"https://api.github.com/repos/dherman/asm.js/issues/86","id":68837147,"user":{"login":"soliton4","id":1090629,"avatar_url":"https://avatars.githubusercontent.com/u/1090629?v=3","gravatar_id":"","url":"https://api.github.com/users/soliton4","html_url":"https://github.com/soliton4","followers_url":"https://api.github.com/users/soliton4/followers","following_url":"https://api.github.com/users/soliton4/following{/other_user}","gists_url":"https://api.github.com/users/soliton4/gists{/gist_id}","starred_url":"https://api.github.com/users/soliton4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soliton4/subscriptions","organizations_url":"https://api.github.com/users/soliton4/orgs","repos_url":"https://api.github.com/users/soliton4/repos","events_url":"https://api.github.com/users/soliton4/events{/privacy}","received_events_url":"https://api.github.com/users/soliton4/received_events","type":"User","site_admin":false},"created_at":"2015-01-06T08:09:05Z","updated_at":"2015-01-06T08:09:05Z","body":"@amadanmath \r\nfixed it:\r\n\r\nhttps://github.com/dherman/asm.js/pull/96\r\n"}}