Community
Participate
Working Groups
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 Build Identifier: 20090920-1017 In some cases, the presence of a line comment completely changes the indentation of the code following it. When formatting the code below, the lines following the line comment get indented less than they reasonably should. Removing either the line comment or the field "a" makes the code format correctly. var x = { a : true, f : function() { if (true) { // } } }; Reproducible: Always Steps to Reproduce: 1. Create a new JavaScript file. 2. Enter the code above (see "Details") 3. Format
Formatting also fails with var x = { f : function() { if (true) { // } }, a: true }; This is a duplicate of Bug 249225.
*** This bug has been marked as a duplicate of bug 249225 ***