{"action":"created","issue":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/2895","repository_url":"https://api.github.com/repos/scala-js/scala-js","labels_url":"https://api.github.com/repos/scala-js/scala-js/issues/2895/labels{/name}","comments_url":"https://api.github.com/repos/scala-js/scala-js/issues/2895/comments","events_url":"https://api.github.com/repos/scala-js/scala-js/issues/2895/events","html_url":"https://github.com/scala-js/scala-js/issues/2895","id":222431032,"number":2895,"title":"ArrayIndexOutOfBoundsException on Safari (iPad)","user":{"login":"nremond","id":600102,"avatar_url":"https://avatars3.githubusercontent.com/u/600102?v=3","gravatar_id":"","url":"https://api.github.com/users/nremond","html_url":"https://github.com/nremond","followers_url":"https://api.github.com/users/nremond/followers","following_url":"https://api.github.com/users/nremond/following{/other_user}","gists_url":"https://api.github.com/users/nremond/gists{/gist_id}","starred_url":"https://api.github.com/users/nremond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nremond/subscriptions","organizations_url":"https://api.github.com/users/nremond/orgs","repos_url":"https://api.github.com/users/nremond/repos","events_url":"https://api.github.com/users/nremond/events{/privacy}","received_events_url":"https://api.github.com/users/nremond/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-04-18T14:14:19Z","updated_at":"2017-04-18T15:17:00Z","closed_at":"2017-04-18T15:17:00Z","body":"Hello,\r\n\r\nThe following snippet: https://scalafiddle.io/sf/aIBFLrQ/1 crashes with an ArrayIndexOutOfBoundsException on Safari iPad.\r\n\r\nI have tested with ScalaJS 0.6.14 and 0.6.15.\r\n\r\nWorks fine until iOS 10.3. Only iOS 10.3.1 is impacted from what I have been able to test.\r\n\r\n From what I have been able to see with the debugger, is that an offset is computed as 8 while the array as 8 elements. Very weird, but the same expression returns 7 when evaluated in the debugger.\r\n<img width=\"1680\" alt=\"screen shot 2017-04-18 at 15 43 34\" src=\"https://cloud.githubusercontent.com/assets/600102/25135166/dfbe42f2-2451-11e7-8d15-61f186659112.png\">\r\n\r\nI have try to debug further, but I'm a bit confused by the definition of `$imul` and `$g[\"Math\"][\"imul\"]`\r\n\r\nHow can I debug that further?\r\n"},"comment":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/comments/294878105","html_url":"https://github.com/scala-js/scala-js/issues/2895#issuecomment-294878105","issue_url":"https://api.github.com/repos/scala-js/scala-js/issues/2895","id":294878105,"user":{"login":"nremond","id":600102,"avatar_url":"https://avatars3.githubusercontent.com/u/600102?v=3","gravatar_id":"","url":"https://api.github.com/users/nremond","html_url":"https://github.com/nremond","followers_url":"https://api.github.com/users/nremond/followers","following_url":"https://api.github.com/users/nremond/following{/other_user}","gists_url":"https://api.github.com/users/nremond/gists{/gist_id}","starred_url":"https://api.github.com/users/nremond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nremond/subscriptions","organizations_url":"https://api.github.com/users/nremond/orgs","repos_url":"https://api.github.com/users/nremond/repos","events_url":"https://api.github.com/users/nremond/events{/privacy}","received_events_url":"https://api.github.com/users/nremond/received_events","type":"User","site_admin":false},"created_at":"2017-04-18T15:17:00Z","updated_at":"2017-04-18T15:17:00Z","body":"OK, closing it\r\n\r\nFor my culture, what is the definition of the associated function of `$g[\"Math\"][\"imul\"]` in https://github.com/scala-js/scala-js/blob/741e7c4317ed3e9328505598af1a8040f886626e/tools/scalajsenv.js#L88 ?"}}
{"actor":{"display_login":"nremond"}}