Closed Bug 1237603 Opened 10 years ago Closed 10 years ago

Sample code "convert the binary hash data to a hex string"

Categories

(Developer Documentation Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alice0775, Assigned: arai)

References

Details

Feel free to reopen when the change is not sufficient.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Thanks!
The documentation has been updated to: var s = Array.from(hash, (c, i) => toHexChar(hash.charCodeAt(i))).join(""); But it's wrong, toHexChar() is undefined. The function name is toHexString().
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to Sören Hentzschel from comment #4) > The documentation has been updated to: > > var s = Array.from(hash, (c, i) => toHexChar(hash.charCodeAt(i))).join(""); > > But it's wrong, toHexChar() is undefined. The function name is toHexString(). Thank you! Fixed.
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.