{"action":"created","issue":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/2068","labels_url":"https://api.github.com/repos/scala-js/scala-js/issues/2068/labels{/name}","comments_url":"https://api.github.com/repos/scala-js/scala-js/issues/2068/comments","events_url":"https://api.github.com/repos/scala-js/scala-js/issues/2068/events","html_url":"https://github.com/scala-js/scala-js/issues/2068","id":119324434,"number":2068,"title":"Int boxing bug","user":{"login":"japgolly","id":202935,"avatar_url":"https://avatars.githubusercontent.com/u/202935?v=3","gravatar_id":"","url":"https://api.github.com/users/japgolly","html_url":"https://github.com/japgolly","followers_url":"https://api.github.com/users/japgolly/followers","following_url":"https://api.github.com/users/japgolly/following{/other_user}","gists_url":"https://api.github.com/users/japgolly/gists{/gist_id}","starred_url":"https://api.github.com/users/japgolly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/japgolly/subscriptions","organizations_url":"https://api.github.com/users/japgolly/orgs","repos_url":"https://api.github.com/users/japgolly/repos","events_url":"https://api.github.com/users/japgolly/events{/privacy}","received_events_url":"https://api.github.com/users/japgolly/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-11-28T23:35:24Z","updated_at":"2016-01-08T12:40:06Z","closed_at":"2016-01-08T12:40:06Z","body":"I started working on official Scala.JS support for Scalaz.\r\nOne of the tests `MapTest` fails thus:\r\n\r\n```\r\n[info] ! .==>> map:mapKeys sound: Exception raised on property evaluation.\r\n[info] > ARG_0: Bin(1740834887,1268128331,Bin(-1421249690,1876982179,Tip,Tip),Bin(2147483647,-2147483648,Tip,Tip))\r\n[info] > Exception: scala.scalajs.runtime.UndefinedBehaviorError: An undefined behavior was detected: 0 is not an instance of java.lang.Integer\r\n```\r\n\r\nIt seems that the `insert` method of `Map` (aka `==>>`) gets an `Order[java.lang.Integer]` and tries to feed it an `Int`. This only happens under Scala.JS so I think it's a Scala.JS bug.\r\n\r\nYou can reproduce by checking out my fork: https://github.com/japgolly/scalaz/tree/scalajs\r\nEnsure you're on the `scalajs` branch, then run `sbt 'testsJS/test-only scalaz.MapTest'`.\r\n(If it passes, run it again; the default settings only perform 33 tests per property.)\r\n"},"comment":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/comments/169987758","html_url":"https://github.com/scala-js/scala-js/issues/2068#issuecomment-169987758","issue_url":"https://api.github.com/repos/scala-js/scala-js/issues/2068","id":169987758,"user":{"login":"sjrd","id":535934,"avatar_url":"https://avatars.githubusercontent.com/u/535934?v=3","gravatar_id":"","url":"https://api.github.com/users/sjrd","html_url":"https://github.com/sjrd","followers_url":"https://api.github.com/users/sjrd/followers","following_url":"https://api.github.com/users/sjrd/following{/other_user}","gists_url":"https://api.github.com/users/sjrd/gists{/gist_id}","starred_url":"https://api.github.com/users/sjrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjrd/subscriptions","organizations_url":"https://api.github.com/users/sjrd/orgs","repos_url":"https://api.github.com/users/sjrd/repos","events_url":"https://api.github.com/users/sjrd/events{/privacy}","received_events_url":"https://api.github.com/users/sjrd/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T12:40:06Z","updated_at":"2016-01-08T12:40:06Z","body":"OK, thanks for trying. I'll close this as a duplicate of #1984, then."}}