Announcement / closure-linter

Automatically exported from code.google.com/p/closure-linter
Apache License 2.0
0 stars 0 forks source link

Adds semicolon to lines ending with ^ causing syntax errors. #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create any line of source code where the ^ operator is the last character.
2. Run fixjsstyle.
3. Note the line has been improperly terminated with a semi-colon.

What is the expected output? What do you see instead?

No semicolons when line ends with valid ^ operator. Instead the tool introduces 
syntax errors.

What version of the product are you using? On what operating system?

Mac OSX, latest SVN checkout as of filing this bug.

Please provide any additional information below.

Original issue reported on code.google.com by yahoo...@gmail.com on 11 May 2012 at 7:34

GoogleCodeExporter commented 9 years ago
I just tried this example and there’s no error being reported, so I guess 
it’s fixed in the latest revision.

var x = 2 ^
        1;

Original comment by rum...@google.com on 15 Jan 2015 at 8:58