{"action":"closed","issue":{"url":"https://api.github.com/repos/opal/opal/issues/1287","repository_url":"https://api.github.com/repos/opal/opal","labels_url":"https://api.github.com/repos/opal/opal/issues/1287/labels{/name}","comments_url":"https://api.github.com/repos/opal/opal/issues/1287/comments","events_url":"https://api.github.com/repos/opal/opal/issues/1287/events","html_url":"https://github.com/opal/opal/issues/1287","id":126648802,"number":1287,"title":"Ruby error message not replicated when calling an unused argument","user":{"login":"tansaku","id":30216,"avatar_url":"https://avatars.githubusercontent.com/u/30216?v=3","gravatar_id":"","url":"https://api.github.com/users/tansaku","html_url":"https://github.com/tansaku","followers_url":"https://api.github.com/users/tansaku/followers","following_url":"https://api.github.com/users/tansaku/following{/other_user}","gists_url":"https://api.github.com/users/tansaku/gists{/gist_id}","starred_url":"https://api.github.com/users/tansaku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tansaku/subscriptions","organizations_url":"https://api.github.com/users/tansaku/orgs","repos_url":"https://api.github.com/users/tansaku/repos","events_url":"https://api.github.com/users/tansaku/events{/privacy}","received_events_url":"https://api.github.com/users/tansaku/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-14T12:52:00Z","updated_at":"2016-04-01T21:46:08Z","closed_at":"2016-04-01T21:46:07Z","body":"Opal is awesome, however I notice that in some cases I don't get the Ruby error message I would expect, e.g. \"wrong number of arguments\"\r\n\r\nIn some cases I can ensure that we get the expected behaviour by setting arity_check_enabled to true, however I notice if I try and run something where the unused variable is actually referenced then even with arity_check_enabled I still get a JS error rather than the expected Ruby one, e.g. \r\n\r\n```ruby\r\ndef random_name(string)\r\n  string\r\nend\r\n\r\nputs \"Hello, #{random_name}\"\r\n```\r\n\r\ngives \r\n\r\n```\r\nTypeError: Cannot read property '$==' of undefined\r\n``` \r\n\r\nin Ruby irb this code gives:\r\n\r\n```\r\n2.2.3 :007 > def random_name(string)\r\n2.2.3 :008?>     string\r\n2.2.3 :009?>   end\r\n => :random_name \r\n2.2.3 :010 > \r\n2.2.3 :011 >   puts \"Hello, #{random_name}\"\r\nArgumentError: wrong number of arguments (0 for 1)\r\n```\r\n\r\nis there any way to have Opal replicate the Ruby error message in this case?"}}