File tree Expand file tree Collapse file tree 4 files changed +16
-0
lines changed Expand file tree Collapse file tree 4 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,20 @@ message.
1515
1616Without ` console_error_panic_hook ` you just get something like * RuntimeError: Unreachable executed*
1717
18+ Browser:
1819![ Console without panic hook] ( without_panic_hook.png )
1920
21+ Node:
22+ ![ Node console without panic hook] ( without_panic_hook_node.png )
23+
2024With this panic hook installed you will see the panic message
2125
26+ Browser:
2227![ Console with panic hook set up] ( with_panic_hook.png )
2328
29+ Node:
30+ ![ Node console with panic hook set up] ( with_panic_hook_node.png )
31+
2432### Usage
2533
2634There are two ways to install this panic hook.
Original file line number Diff line number Diff line change 1515//!
1616//! Without `console_error_panic_hook` you just get something like *RuntimeError: Unreachable executed*
1717//!
18+ //! Browser:
1819//! 
1920//!
21+ //! Node:
22+ //! 
23+ //!
2024//! With this panic hook installed you will see the panic message
2125//!
26+ //! Browser:
2227//! 
2328//!
29+ //! Node:
30+ //! 
31+ //!
2432//! ## Usage
2533//!
2634//! There are two ways to install this panic hook.
You can’t perform that action at this time.
0 commit comments