mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
use str to_jsval() now
xmlhttprequest.rs, CodegenRust.py replace into_string().to_jsval() to to_jsval() conversions.rs DOMString to_jsval() use as_slice().tojsval() now
This commit is contained in:
parent
6f569dee92
commit
bb087c238b
3 changed files with 3 additions and 10 deletions
|
@ -695,7 +695,7 @@ impl<'a> XMLHttpRequestMethods for JSRef<'a, XMLHttpRequest> {
|
|||
if ready_state == XMLHttpRequestState::XHRDone || ready_state == XMLHttpRequestState::Loading {
|
||||
self.text_response().to_jsval(cx)
|
||||
} else {
|
||||
"".into_string().to_jsval(cx)
|
||||
"".to_jsval(cx)
|
||||
}
|
||||
},
|
||||
_ if self.ready_state.get() != XMLHttpRequestState::XHRDone => NullValue(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue