You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 30, 2023. It is now read-only.
The Number.prototype.toString method is not computing correct results (which are defined here as "the results returned by command-line debugging shells for JavaScriptCore, Spidermonkey, and V8 as well as the developer consoles inside Chrome, Firefox, and Safari").
Test cases
(0.001).toString(16)// returns "0", but should return "0.004189374bc6a7f"(1.001).toString(16)// returns "1", but should return "1.004189374bc6a"(-0.001).toString(16)// returns "-0", but should return "-0.004189374bc6a7f"(0.0005).toString(16)// returns "0", but should return "0.0020c49ba5e353f8"
Hypothesis
Somehow, this conversion is not being handled by JavaScriptCore like it should be, because these results are computed correctly in the command-line JSC debugging shell available on OS X and in the developer console in Safari.
The text was updated successfully, but these errors were encountered:
Problem
The
Number.prototype.toString
method is not computing correct results (which are defined here as "the results returned by command-line debugging shells for JavaScriptCore, Spidermonkey, and V8 as well as the developer consoles inside Chrome, Firefox, and Safari").Test cases
Hypothesis
Somehow, this conversion is not being handled by JavaScriptCore like it should be, because these results are computed correctly in the command-line JSC debugging shell available on OS X and in the developer console in Safari.
The text was updated successfully, but these errors were encountered: