{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/1beb42701eb7745571828423d564eb37?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1beb42701eb7745571828423d564eb37","url":"https://api.github.com/users/dwt","login":"dwt","id":57199},"milestone":null,"labels":[{"name":"invalid","color":"ededed","url":"https://api.github.com/repos/jashkenas/coffee-script/labels/invalid"}],"assignee":null,"updated_at":"2011-11-04T13:21:49Z","closed_at":"2011-11-04T13:21:49Z","comments":1,"url":"https://api.github.com/repos/jashkenas/coffee-script/issues/1825","body":"Hi there,\r\n\r\na splat that is not in the last position of a function invocation doesn't work correctly (As far as I can see).\r\n\r\nhere's an example:\r\n\r\n\r\n $ coffee -bpe \"a = []; console.log('foo', a..., 'bar')\"\r\n var a;\r\n var __slice = Array.prototype.slice;\r\n a = [];\r\n console.log.apply(console, ['foo'].concat(__slice.call(a), ['bar']));\r\n\r\nI think the last 'bar' needs to be concatenated together instead of being handed in as separate argument.","html_url":"https://github.com/jashkenas/coffee-script/issues/1825","title":"splat not in last position in function call","number":1825,"id":2142416,"created_at":"2011-11-04T10:24:38Z"},"action":"closed"}