mozilla / browserid-crypto

INACTIVE - JavaScript implementation of JSON Web Signatures, JSON Web Tokens, and JSON Web Certificates

Home Page:http://identity.mozilla.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jwcrypto should use Exceptions with stack traces

ozten opened this issue · comments

Currently, many error paths use a function and a string to indicate an error, instead of creating a new Error(msg) which would capture a stack trace.

Example:
"Not implemented: DS"
https://github.com/mozilla/jwcrypto/blob/master/lib/algs/index.js#L9

"malformed signature"
https://github.com/mozilla/jwcrypto/blob/master/lib/cert.js#L63

Fixed by #89