--- a/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/jsCheckSyntax.py Fri Nov 11 17:14:21 2022 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/jsCheckSyntax.py Fri Nov 11 17:49:06 2022 +0100 @@ -35,21 +35,6 @@ return jsSyntaxBatchCheck -def normalizeCode(codestring): - """ - Function to normalize the given code. - - @param codestring code to be normalized (string) - @return normalized code (string) - """ - codestring = codestring.replace("\r\n", "\n").replace("\r", "\n") - - if codestring and codestring[-1] != "\n": - codestring += "\n" - - return codestring - - def jsSyntaxCheck(file, codestring): """ Function to check a Javascript source file for syntax errors. @@ -171,8 +156,6 @@ import jasy.script.parse.Parser as jsParser # __IGNORE_WARNING_I102__ import jasy.script.tokenize.Tokenizer as jsTokenizer # __IGNORE_WARNING_I102__ - codestring = normalizeCode(codestring) - try: jsParser.parse(codestring, file) except (jsParser.SyntaxError, jsTokenizer.ParseError) as exc: