//! Panic reporting for the browser binding.
//!
//! `wasm32-unknown-unknown` has no stderr, so the default hook discards every panic and the
//! host sees only `RuntimeError: unreachable`, followed by `already borrowed` on later calls to
//! a poisoned object. This routes the message and location to the console.
use Once;
use *;
/// Installs the panic reporter when the module is instantiated, so every entry point is
/// covered without the host opting in.
/// Forwards panic messages and locations to `console.error`, through an `Error` so the console
/// shows a stack. The panic still aborts.