Skip to content

Commit

Permalink
doc: Add a Safety Section to JsValue.downcast_unchecked.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Sep 19, 2022
1 parent cafa9b2 commit da67411
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ impl JsValue {
/// Attempt to downcast the `JsValue` to a croncrete type `T` that
/// implements `RefFromWasmAbi`.
///
/// # Safety
///
/// This method is unsafe because the type of `JsValue` is never
/// checked.
#[inline]
Expand Down

0 comments on commit da67411

Please sign in to comment.