mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Scaffold module script
This commit is contained in:
parent
86575bba1b
commit
f2007751dd
6 changed files with 1620 additions and 63 deletions
|
@ -30,6 +30,7 @@ use crate::dom::promise::Promise;
|
|||
use crate::dom::promiserejectionevent::PromiseRejectionEvent;
|
||||
use crate::dom::response::Response;
|
||||
use crate::microtask::{EnqueuedPromiseCallback, Microtask, MicrotaskQueue};
|
||||
use crate::script_module::EnsureModuleHooksInitialized;
|
||||
use crate::script_thread::trace_thread;
|
||||
use crate::task::TaskBox;
|
||||
use crate::task_source::networking::NetworkingTaskSource;
|
||||
|
@ -498,6 +499,8 @@ unsafe fn new_rt_and_cx_with_parent(
|
|||
SetJobQueue(cx, job_queue);
|
||||
SetPromiseRejectionTrackerCallback(cx, Some(promise_rejection_tracker), ptr::null_mut());
|
||||
|
||||
EnsureModuleHooksInitialized(runtime.rt());
|
||||
|
||||
set_gc_zeal_options(cx);
|
||||
|
||||
// Enable or disable the JITs.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue