Use unwrap_throw instead of normal unwrap for JsString -> String conversion

Should have less code size.
This commit is contained in:
Nick Fitzgerald 2019-02-10 13:39:11 -05:00
parent 499ae1250e
commit c8ad85dd0b

View File

@ -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()
}
}