{"action":"created","issue":{"url":"https://api.github.com/repos/searls/jasmine-maven-plugin/issues/291","labels_url":"https://api.github.com/repos/searls/jasmine-maven-plugin/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/searls/jasmine-maven-plugin/issues/291/comments","events_url":"https://api.github.com/repos/searls/jasmine-maven-plugin/issues/291/events","html_url":"https://github.com/searls/jasmine-maven-plugin/issues/291","id":122137976,"number":291,"title":"Javascript Rest Parameters cause a build to error","user":{"login":"moogleberry","id":8405096,"avatar_url":"https://avatars.githubusercontent.com/u/8405096?v=3","gravatar_id":"","url":"https://api.github.com/users/moogleberry","html_url":"https://github.com/moogleberry","followers_url":"https://api.github.com/users/moogleberry/followers","following_url":"https://api.github.com/users/moogleberry/following{/other_user}","gists_url":"https://api.github.com/users/moogleberry/gists{/gist_id}","starred_url":"https://api.github.com/users/moogleberry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moogleberry/subscriptions","organizations_url":"https://api.github.com/users/moogleberry/orgs","repos_url":"https://api.github.com/users/moogleberry/repos","events_url":"https://api.github.com/users/moogleberry/events{/privacy}","received_events_url":"https://api.github.com/users/moogleberry/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-14T21:42:42Z","updated_at":"2016-01-13T01:09:39Z","closed_at":"2016-01-13T01:09:39Z","body":"When building (maven clean install) a project using jasmine-maven-plugin, if the included Javascript files contain a function that uses a [Rest Parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters), the build will yield a `JavaScript Console Error: Syntax Error: Parse Error` with no further explanation, and stop at `Failed to execute goal com.github.searls:jasmine-maven-plugin:2.0:test (default) ...`.  This error then causes a `java.lang.RuntimeException: There were javascript console errors.` that will cause the build to fail.  \r\n\r\n\r\nI've traced the source to my use of a Rest Parameter in a function:\r\n`var test = function(f, ...config) { ... };`\r\nRemoving the \"...\" in the parameter is sufficient to make the build finish successfully (but the functionality is then changed).  \r\n\r\nVersions used: Maven 3.3.3, jasmine-maven-plugin 2.0, phantomjs 1.9.7, Java 1.8\r\n\r\nI'm not sure if this is a jasmine-maven-plugin problem, or if I should be pushing this to apache-maven (or maybe it's just me?), since it references org.apache.maven.MavenCli.  Any suggestions?    "},"comment":{"url":"https://api.github.com/repos/searls/jasmine-maven-plugin/issues/comments/171119556","html_url":"https://github.com/searls/jasmine-maven-plugin/issues/291#issuecomment-171119556","issue_url":"https://api.github.com/repos/searls/jasmine-maven-plugin/issues/291","id":171119556,"user":{"login":"klieber","id":868930,"avatar_url":"https://avatars.githubusercontent.com/u/868930?v=3","gravatar_id":"","url":"https://api.github.com/users/klieber","html_url":"https://github.com/klieber","followers_url":"https://api.github.com/users/klieber/followers","following_url":"https://api.github.com/users/klieber/following{/other_user}","gists_url":"https://api.github.com/users/klieber/gists{/gist_id}","starred_url":"https://api.github.com/users/klieber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klieber/subscriptions","organizations_url":"https://api.github.com/users/klieber/orgs","repos_url":"https://api.github.com/users/klieber/repos","events_url":"https://api.github.com/users/klieber/events{/privacy}","received_events_url":"https://api.github.com/users/klieber/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T01:09:39Z","updated_at":"2016-01-13T01:09:39Z","body":"Closing this issue as it is not an issue with the plugin.  As soon as phantomjs supports these feature the plugin will but until then it is out of my control."}}