« Bugzilla Issues Index
#1527 — Coverage: Missing tests for Number.prototype.toFixed and toPrecision
2013-05-26 03:59:00 -0700
Coverage: Missing tests for Number.prototype.toFixed and toPrecision
2013-06-11 08:31:05 -0700
2013-05-26 03:59:39 -0700
Bug 1526 mentions problems with the rounding behavior in Number.prototype.toFixed in some implementations. There are no tests for this behavior, which seems a serious gap. The Test402 test suite has a test 11.3.2_TRP, from which a test for toFixed could be derived (note however that toFixed uses exponential format in some case, while Intl.NumberFormat.prototype.format doesn't).
2013-05-26 04:06:07 -0700
The description should have said toPrecision rather than toFixed. But the same problem exists for toFixed - neither have adequate test coverage.