Cannot find JavaScript syntax error

I'm going to get angry. Currently, I have to work on a website that some other guy made, and they ask me to support, etc. It uses jQuery and a bunch of drupal modules. At some point, I get some syntax error, so some js work and some do not. My big problem is finding a syntax error. Neither Firebug nor WebInspector give me decent information:

Error: uncaught exception: Syntax error, unrecognized expression: //

Yes it is. No lines, no file name, no hints. Does anyone know how to handle this?

Thanks for any helpful hints.

+3
source share
4 answers

, , , . alert('checkpoint');, , , .

+3

, Chrome . > , , , X, , ...

, JSLint ...

+2

, javascript, html, ( ). , , ? , , , . , , .

+1

JSLint , , , , .

+1

Source: https://habr.com/ru/post/1764158/


All Articles