Visual Studio debugger reports critical error in (unknown source location)\n\nSCRIPT1007: Expected ']'
Running VS in debugging mode throws the following error:
JavaScript critical error in (unknown source location)\n\nSCRIPT1007: Expected ']'
In our case, this error was caused by passing too many parameters to a custom jQuery plugin function.
See also