diff --git a/core/interop/src/lib.rs b/core/interop/src/lib.rs index 08b79c44573..2813e9d0469 100644 --- a/core/interop/src/lib.rs +++ b/core/interop/src/lib.rs @@ -392,6 +392,10 @@ impl JsClass { impl JsClass { /// Clones the inner class instance. + /// + /// # Panics + /// + /// Panics if the inner object is currently borrowed mutably. #[must_use] pub fn clone_inner(&self) -> T { self.inner.borrow().data().clone()