When deploying my Rails app I get the following error:
rake aborted!
ExecJS::ProgramError: Unexpected token punc «(», expected punc «:» (line: 15, col: 14
In my case problem with function definition like,
function someFunctionName(param1, param2=defaultValue){
//code
}
Due to above function definition I was getting error, as it is not supported by Uglifier. Default parameters is ES6/ES2015 language specification.
For solution to above problem you can refer Set a default parameter value for a JavaScript function