{"action":"created","issue":{"url":"https://api.github.com/repos/KhronosGroup/WebGL/issues/1168","labels_url":"https://api.github.com/repos/KhronosGroup/WebGL/issues/1168/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/WebGL/issues/1168/comments","events_url":"https://api.github.com/repos/KhronosGroup/WebGL/issues/1168/events","html_url":"https://github.com/KhronosGroup/WebGL/pull/1168","id":103569629,"number":1168,"title":"Fixed Khronos bug 14551: WebGL 1.0.3: ternary-operators-in-global-ini…","user":{"login":"kenrussell","id":1149904,"avatar_url":"https://avatars.githubusercontent.com/u/1149904?v=3","gravatar_id":"","url":"https://api.github.com/users/kenrussell","html_url":"https://github.com/kenrussell","followers_url":"https://api.github.com/users/kenrussell/followers","following_url":"https://api.github.com/users/kenrussell/following{/other_user}","gists_url":"https://api.github.com/users/kenrussell/gists{/gist_id}","starred_url":"https://api.github.com/users/kenrussell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenrussell/subscriptions","organizations_url":"https://api.github.com/users/kenrussell/orgs","repos_url":"https://api.github.com/users/kenrussell/repos","events_url":"https://api.github.com/users/kenrussell/events{/privacy}","received_events_url":"https://api.github.com/users/kenrussell/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-27T18:40:53Z","updated_at":"2015-09-02T17:58:58Z","closed_at":"2015-08-27T19:43:03Z","pull_request":{"url":"https://api.github.com/repos/KhronosGroup/WebGL/pulls/1168","html_url":"https://github.com/KhronosGroup/WebGL/pull/1168","diff_url":"https://github.com/KhronosGroup/WebGL/pull/1168.diff","patch_url":"https://github.com/KhronosGroup/WebGL/pull/1168.patch"},"body":"…tializers\r\n\r\nAdded \"const\" to the declarations of the variables on the two sides of the ternary operator."},"comment":{"url":"https://api.github.com/repos/KhronosGroup/WebGL/issues/comments/137191410","html_url":"https://github.com/KhronosGroup/WebGL/pull/1168#issuecomment-137191410","issue_url":"https://api.github.com/repos/KhronosGroup/WebGL/issues/1168","id":137191410,"user":{"login":"Oletus","id":453050,"avatar_url":"https://avatars.githubusercontent.com/u/453050?v=3","gravatar_id":"","url":"https://api.github.com/users/Oletus","html_url":"https://github.com/Oletus","followers_url":"https://api.github.com/users/Oletus/followers","following_url":"https://api.github.com/users/Oletus/following{/other_user}","gists_url":"https://api.github.com/users/Oletus/gists{/gist_id}","starred_url":"https://api.github.com/users/Oletus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oletus/subscriptions","organizations_url":"https://api.github.com/users/Oletus/orgs","repos_url":"https://api.github.com/users/Oletus/repos","events_url":"https://api.github.com/users/Oletus/events{/privacy}","received_events_url":"https://api.github.com/users/Oletus/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T17:58:58Z","updated_at":"2015-09-02T17:58:58Z","body":"Actually, now that I think of it I don't think that the test works as intended after this commit - now the ternary operator will just end up being constant folded, when the problem that this patch exposed was that the non-constant ternary operator was being converted to if statements in ANGLE, which wasn't appropriate in the global scope.\r\n\r\nThere's also already a specific test for global initializers with non-constants, but only in the 1.0.4 suite, not in the 1.0.3 suite."}}