Community
Participate
Working Groups
Build Identifier: 20090920-1017 I have configured the formatter to not insert a white space after the opening parenthesis in the for loop. It works well if i declare the counter variable outside the loop: for (i = 0, j = array.length; i < array.length; i++, j--) { } But if i declare the counter variable inside the loop, the formatter inserts a white space after the opening parenthesis: for ( var i = 0, j = array.length; i < array.length; i++, j--) { } Reproducible: Always Steps to Reproduce: 1. Just format the following code fragment: for (var i = 0, j = array.length; i < array.length; i++, j--) { }
Created attachment 218730 [details] patch
Hey there, Thanks for the patch - any ideea when (/where) will it first be available? (either in a nightly build, or official patch, etc. - unfortunately I am not familiar with Eclipse's patch release process and even using the documentation it is not that obvious...)
Please fix this format issue soon. I'm surprised a patch was created last year and didn't make it for Juno SR2 release :(
When will this fix be added to production? It's quite bothersome.
(In reply to comment #4) > When will this fix be added to production? It's quite bothersome. Consider this issue has been there for years and several other JS format bugs dragging event longer, I have high hopes in the next decade, lol.
Thanks for the patch Toshihiro. I am going to mark this bug a dupe of 369785 (even though it is newer) because I started working on that one before I realized this one existed :) *** This bug has been marked as a duplicate of bug 369785 ***