0.1.6 (older version) Thoroughness: Medium Understanding: High
by Michael-F-Bryan on 2019-10-12
This review is from Crev, a distributed system for code reviews. To add your review, set up cargo-crev
.
The current version of console_error_panic_hook is 0.1.7.
0.1.6 (older version) Thoroughness: Medium Understanding: High
by Michael-F-Bryan on 2019-10-12
This review is from cargo-vet. To add your review, set up cargo-vet
and submit your URL to its registry.
The current version of console_error_panic_hook is 0.1.7.
0.1.6 (older version)
From kornelski/crev-proofs copy of git.savannah.gnu.org.
Packaged for Guix (crates-io)
cargo-vet does not verify reviewers' identity. You have to fully trust the source the audits are from.
May have been packaged automatically without a review
Crates in the crates.io registry are tarball snapshots uploaded by crates' publishers. The registry is not using crates' git repositories. There is absolutely no guarantee that the repository URL declared by the crate belongs to the crate, or that the code in the repository is the code inside the published tarball.
To review the actual code of the crate, it's best to use cargo crev open console_error_panic_hook
. Alternatively, you can download the tarball of console_error_panic_hook v0.1.7 or view the source online.
The implementation is rather straight-forward. It uses
std::panic::set_hook()
to install a panic hook which usesconsole.error()
from JavaScript to log a panic and the backtrace retrieved by creating anew Error()
.The code is also thoroughly documented using both rustdocs and comments and explains possible edge cases due to browser differences.