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)
Developer Documentation Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: alice0775, Assigned: arai)
References
Details
Bug 1220564 was landed,
I think the sample code should be revised.
https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Creating_reusable_modules
| Assignee | ||
Comment 1•10 years ago
|
||
Updated the page and localized pages, with code copied from patch in bug 1220564.
https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Creating_reusable_modules
https://developer.mozilla.org/pt-BR/docs/Mozilla/Add-ons/SDK/Tutorials/Creating_reusable_modules
https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsICryptoHash
https://developer.mozilla.org/ko/docs/nsICryptoHash
https://developer.mozilla.org/ja/docs/XPCOM_Interface_Reference/nsICryptoHash
Assignee: nobody → arai.unmht
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
| Assignee | ||
Comment 2•10 years ago
|
||
Feel free to reopen when the change is not sufficient.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 3•10 years ago
|
||
Thanks!
Comment 4•10 years ago
|
||
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 → ---
| Assignee | ||
Comment 5•10 years ago
|
||
(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 ago → 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•