mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix various build warnings.
This commit is contained in:
parent
717805a593
commit
1604515fd9
16 changed files with 32 additions and 35 deletions
|
@ -470,7 +470,7 @@ impl<'a, T: Reflectable> ScriptHelpers for JSRef<'a, T> {
|
|||
let global = global_object_for_js_object(this).root().r().reflector().get_jsobject();
|
||||
let code: Vec<u16> = code.as_slice().utf16_units().collect();
|
||||
let mut rval = UndefinedValue();
|
||||
let filename = CString::from_slice(filename.as_bytes());
|
||||
let filename = CString::new(filename).unwrap();
|
||||
|
||||
with_compartment(cx, global, || {
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue