diff --git a/crates/js-sys/src/lib.rs b/crates/js-sys/src/lib.rs index 556b827f6be..a74802a4557 100644 --- a/crates/js-sys/src/lib.rs +++ b/crates/js-sys/src/lib.rs @@ -4339,7 +4339,7 @@ impl From for JsString { impl<'a> From<&'a JsString> for String { fn from(s: &'a JsString) -> Self { - s.obj.as_string().unwrap() + s.obj.as_string().unwrap_throw() } }