{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/rhino/issues/213","labels_url":"https://api.github.com/repos/mozilla/rhino/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/rhino/issues/213/comments","events_url":"https://api.github.com/repos/mozilla/rhino/issues/213/events","html_url":"https://github.com/mozilla/rhino/issues/213","id":92456436,"number":213,"title":"calling methods on Array constructor (Array.filter, etc.)","user":{"login":"oberhamsi","id":53384,"avatar_url":"https://avatars.githubusercontent.com/u/53384?v=3","gravatar_id":"","url":"https://api.github.com/users/oberhamsi","html_url":"https://github.com/oberhamsi","followers_url":"https://api.github.com/users/oberhamsi/followers","following_url":"https://api.github.com/users/oberhamsi/following{/other_user}","gists_url":"https://api.github.com/users/oberhamsi/gists{/gist_id}","starred_url":"https://api.github.com/users/oberhamsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oberhamsi/subscriptions","organizations_url":"https://api.github.com/users/oberhamsi/orgs","repos_url":"https://api.github.com/users/oberhamsi/repos","events_url":"https://api.github.com/users/oberhamsi/events{/privacy}","received_events_url":"https://api.github.com/users/oberhamsi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-01T18:33:10Z","updated_at":"2015-07-01T18:45:55Z","closed_at":"2015-07-01T18:45:55Z","body":"there's a couple of places in our code were we have something like the following:\r\n\r\n    var args = Array.filter(arguments, function(p) p != \"\")\r\n\r\nthe above used to return the filtered Array but the behaviour changed to returning `undefined` with a recent rhino commit https://github.com/mozilla/rhino/commit/5fda169c76e6b1a569b9c7b715b0af6345b84fde\r\n\r\nmy firefox behaves like the old rhino whereas chrome doesn't even have `Array.filter` defined.  i'm certainly more used to seeing it done less elegantly: `Array.prototype.filter.call`\r\n\r\nany idea what's going on there?"},"comment":{"url":"https://api.github.com/repos/mozilla/rhino/issues/comments/117793052","html_url":"https://github.com/mozilla/rhino/issues/213#issuecomment-117793052","issue_url":"https://api.github.com/repos/mozilla/rhino/issues/213","id":117793052,"user":{"login":"oberhamsi","id":53384,"avatar_url":"https://avatars.githubusercontent.com/u/53384?v=3","gravatar_id":"","url":"https://api.github.com/users/oberhamsi","html_url":"https://github.com/oberhamsi","followers_url":"https://api.github.com/users/oberhamsi/followers","following_url":"https://api.github.com/users/oberhamsi/following{/other_user}","gists_url":"https://api.github.com/users/oberhamsi/gists{/gist_id}","starred_url":"https://api.github.com/users/oberhamsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oberhamsi/subscriptions","organizations_url":"https://api.github.com/users/oberhamsi/orgs","repos_url":"https://api.github.com/users/oberhamsi/repos","events_url":"https://api.github.com/users/oberhamsi/events{/privacy}","received_events_url":"https://api.github.com/users/oberhamsi/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T18:45:55Z","updated_at":"2015-07-01T18:45:55Z","body":"thanks the quick fact check. we'll fix our code.\r\n\r\nnot sure if you consider this a bug then:\r\n\r\n    Rhino 1.7.8-SNAPSHOT 2015 07 01\r\n    js> Array.filter\r\n    function filter() { [native code for Array.filter, arity=1] }\r\n"}}