[Webkit-unassigned] [Bug 199163] New: toExponential, toFixed, and toPrecision should allow arguments up to 100

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 24 09:27:55 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=199163

            Bug ID: 199163
           Summary: toExponential, toFixed, and toPrecision should allow
                    arguments up to 100
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Minor
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: shvaikalesh at gmail.com

ECMA262:
  https://tc39.es/ecma262/#sec-number.prototype.toexponential (step 8)
  https://tc39.es/ecma262/#sec-number.prototype.tofixed (step 4)
  https://tc39.es/ecma262/#sec-number.prototype.toprecision (step 8)

ES5 also allowed those arguments to exceed 20, but in informal note, while normative text was:

```
15.7.4.5 Number.prototype.toFixed (fractionDigits)

2. If f < 0 or f > 20, throw a RangeError exception.
```

V8 and SpiderMonkey accept arguments up to 100.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190624/723c1bb1/attachment.html>


More information about the webkit-unassigned mailing list