mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Update mozjs.
This commit is contained in:
parent
4c82d3cb86
commit
5c4939599e
13 changed files with 131 additions and 79 deletions
|
@ -66,6 +66,7 @@ use std::io::{Read, Seek, Write};
|
|||
use std::mem::replace;
|
||||
use std::path::PathBuf;
|
||||
use std::process::Command;
|
||||
use std::ptr;
|
||||
use std::rc::Rc;
|
||||
use std::sync::{Arc, Mutex};
|
||||
use style::str::{StaticStringVec, HTML_SPACE_CHARACTERS};
|
||||
|
@ -445,6 +446,7 @@ impl FetchResponseListener for ClassicContext {
|
|||
fetch_options: self.fetch_options.clone(),
|
||||
});
|
||||
|
||||
let mut token = ptr::null_mut();
|
||||
unsafe {
|
||||
assert!(CompileOffThread1(
|
||||
*cx,
|
||||
|
@ -452,6 +454,7 @@ impl FetchResponseListener for ClassicContext {
|
|||
&mut transform_str_to_source_text(&context.script_text) as *mut _,
|
||||
Some(off_thread_compilation_callback),
|
||||
Box::into_raw(context) as *mut c_void,
|
||||
&mut token,
|
||||
));
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue