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
|
@ -820,7 +820,7 @@ impl<'a, T: Reflectable> ScriptHelpers for &'a T {
|
|||
let cx = global.r().get_cx();
|
||||
let _ar = JSAutoRequest::new(cx);
|
||||
let globalhandle = global.r().reflector().get_jsobject();
|
||||
let code: Vec<u16> = code.utf16_units().collect();
|
||||
let code: Vec<u16> = code.encode_utf16().collect();
|
||||
let filename = CString::new(filename).unwrap();
|
||||
|
||||
let _ac = JSAutoCompartment::new(cx, globalhandle.get());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue