The test fast/js/const.js contains the lines const x = "RIGHT"; ... const x = "RIGHT", y = "RIGHT"; Redeclaring 'const x', which produces an error. (http://www.mozilla.org/js/language/js20-2002-04/core/variables.html discusses disallowing redefining consts; other places may too.) The test should be fixed to use a different variable name there, since that portion is not trying to test redefining constants. A separate test can be added for the latter.
Created attachment 24276 [details] Fixes inadvertent const redeclaration and adds test for it Note that the const-redeclaration part of this doesn't currently do the right thing. That's bug 14611.
Comment on attachment 24276 [details] Fixes inadvertent const redeclaration and adds test for it r=me
I'll land this.
Fixed in r37543.