{"action":"created","issue":{"url":"https://api.github.com/repos/google/elemental2/issues/75","repository_url":"https://api.github.com/repos/google/elemental2","labels_url":"https://api.github.com/repos/google/elemental2/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/google/elemental2/issues/75/comments","events_url":"https://api.github.com/repos/google/elemental2/issues/75/events","html_url":"https://github.com/google/elemental2/issues/75","id":391410379,"node_id":"MDU6SXNzdWUzOTE0MTAzNzk=","number":75,"title":"Cannot access int[] from Uint8ClampedArray","user":{"login":"mdproctor","id":521762,"node_id":"MDQ6VXNlcjUyMTc2Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/521762?v=4","gravatar_id":"","url":"https://api.github.com/users/mdproctor","html_url":"https://github.com/mdproctor","followers_url":"https://api.github.com/users/mdproctor/followers","following_url":"https://api.github.com/users/mdproctor/following{/other_user}","gists_url":"https://api.github.com/users/mdproctor/gists{/gist_id}","starred_url":"https://api.github.com/users/mdproctor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdproctor/subscriptions","organizations_url":"https://api.github.com/users/mdproctor/orgs","repos_url":"https://api.github.com/users/mdproctor/repos","events_url":"https://api.github.com/users/mdproctor/events{/privacy}","received_events_url":"https://api.github.com/users/mdproctor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-15T20:46:00Z","updated_at":"2018-12-15T20:55:23Z","closed_at":null,"author_association":"NONE","body":"I'm trying to get direct access to the Uint8ClampedArray array, returned from an ImageData instance. It throws a ClassCastException. Is this a bug, am I doing something wrong, or maybe  misunderstanding the API?\r\n      Uint8ClampedArray.ConstructorLengthUnionType temp = Uint8ClampedArray.ConstructorLengthUnionType.of(dataArray);\r\n        int[] data = temp.asIntArray();"},"comment":{"url":"https://api.github.com/repos/google/elemental2/issues/comments/447597233","html_url":"https://github.com/google/elemental2/issues/75#issuecomment-447597233","issue_url":"https://api.github.com/repos/google/elemental2/issues/75","id":447597233,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzU5NzIzMw==","user":{"login":"mdproctor","id":521762,"node_id":"MDQ6VXNlcjUyMTc2Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/521762?v=4","gravatar_id":"","url":"https://api.github.com/users/mdproctor","html_url":"https://github.com/mdproctor","followers_url":"https://api.github.com/users/mdproctor/followers","following_url":"https://api.github.com/users/mdproctor/following{/other_user}","gists_url":"https://api.github.com/users/mdproctor/gists{/gist_id}","starred_url":"https://api.github.com/users/mdproctor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdproctor/subscriptions","organizations_url":"https://api.github.com/users/mdproctor/orgs","repos_url":"https://api.github.com/users/mdproctor/repos","events_url":"https://api.github.com/users/mdproctor/events{/privacy}","received_events_url":"https://api.github.com/users/mdproctor/received_events","type":"User","site_admin":false},"created_at":"2018-12-15T20:55:23Z","updated_at":"2018-12-15T20:55:23Z","author_association":"NONE","body":"For now I'm just doing:\r\nint[] data = Js.uncheckedCast(dataArray);\r\n\r\nAnd it works, but it makes me think there is a bug, if I cannot asIntArray via the main type safe api."}}
{"actor":{"display_login":"mdproctor"}}