ES5 draft in 15.12.3 stringify ( value [ , replacer [ , space ] ] ) says 4.6. If Type(space) is number a. Let space be min(10, ToInteger(space))the lesser of space and 100. b. Set gap to a string containing space space characters. This will be the empty string if space is less than 1. /be
Created attachment 387888 [details] [diff] [review] fix
there are a bunch of little issues like this, since the spec changed pretty late (IE8 has issues too). Should we try to get them on 184.108.40.206 ?
http://hg.mozilla.org/tracemonkey/rev/216de166d504 I'm in favor of fixing this ASAP. It's a safe fix. ES5 benefits from being tested as currently drafted, and we don't expect changes here. /be