mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
rename deprecated utf16_units to encode_utf16
This commit is contained in:
parent
743e0c9c87
commit
c880c97b1b
7 changed files with 8 additions and 10 deletions
|
@ -1172,7 +1172,7 @@ impl XMLHttpRequest {
|
|||
}
|
||||
// Step 4
|
||||
let json_text = UTF_8.decode(&bytes, DecoderTrap::Replace).unwrap();
|
||||
let json_text: Vec<u16> = json_text.utf16_units().collect();
|
||||
let json_text: Vec<u16> = json_text.encode_utf16().collect();
|
||||
// Step 5
|
||||
let mut rval = RootedValue::new(cx, UndefinedValue());
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue