Unrecoverable Syntax Error

Hi there,

I am getting the below error on my js code:

Warning: Uglification failed.
Unexpected token punc «;», expected punc «,».

Here is the code below:

window.powerManagement.dim(function() {
console.log('Wakelock acquired');
}, function() {
console.log('Failed to acquire wakelock');
window.powerManagement.setReleaseOnPause(false, function() {
console.log('setReleaseOnPause successfully');
}, function() {
console.log('Failed to set');

Please help me correct the syntax?

1 person has
this problem