mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
Use DOMString::new() somewhat consistently.
This commit is contained in:
parent
dab3926622
commit
e6aa976462
24 changed files with 67 additions and 68 deletions
|
@ -1642,9 +1642,9 @@ impl ScriptTask {
|
|||
window.evaluate_js_on_global_with_result(evalstr, jsval.handle_mut());
|
||||
let strval = FromJSValConvertible::from_jsval(self.get_cx(), jsval.handle(),
|
||||
StringificationBehavior::Empty);
|
||||
strval.unwrap_or("".to_owned())
|
||||
strval.unwrap_or(DOMString::new())
|
||||
} else {
|
||||
"".to_owned()
|
||||
DOMString::new()
|
||||
};
|
||||
|
||||
parse_html(document.r(), parse_input, final_url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue