diff options
author | Josh Matthews <josh@joshmatthews.net> | 2021-01-24 14:07:10 -0500 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2021-02-18 09:35:45 -0500 |
commit | 5c4939599e2793154569b19db87be8cc05ca9269 (patch) | |
tree | d159222463bf786b64f6e1a30b443e631f4e1b4c /components/script/dom/htmlscriptelement.rs | |
parent | 4c82d3cb861d00e63a08fb987631817bfc7ce07c (diff) | |
download | servo-5c4939599e2793154569b19db87be8cc05ca9269.tar.gz servo-5c4939599e2793154569b19db87be8cc05ca9269.zip |
Update mozjs.
Diffstat (limited to 'components/script/dom/htmlscriptelement.rs')
-rw-r--r-- | components/script/dom/htmlscriptelement.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/htmlscriptelement.rs b/components/script/dom/htmlscriptelement.rs index 515cdb898f0..0db6ca8cba2 100644 --- a/components/script/dom/htmlscriptelement.rs +++ b/components/script/dom/htmlscriptelement.rs @@ -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 { |