mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 10:10:52 +00:00
Use unwrap_throw
instead of normal unwrap
for JsString -> String conversion
Should have less code size.
This commit is contained in:
parent
499ae1250e
commit
c8ad85dd0b
@ -4339,7 +4339,7 @@ impl From<String> 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()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user