mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
Pass &mut JSContext (#43543)
This is follow-up of #41459. We replace some of these: ```rust let mut cx = unsafe { script_bindings::script_runtime::temp_cx() }; ``` ..by passing a `cx: &mut JSContext` instead. --- Testing: existing WPT tests Fixes: #43453 Signed-off-by: pylbrecht <pylbrecht@mailbox.org>
This commit is contained in:
@@ -962,12 +962,12 @@ impl HTMLScriptElement {
|
||||
};
|
||||
|
||||
fetch_inline_module_script(
|
||||
cx,
|
||||
ModuleOwner::Window(Trusted::new(self)),
|
||||
text_rc,
|
||||
base_url,
|
||||
options,
|
||||
self.line_number as u32,
|
||||
CanGc::from_cx(cx),
|
||||
);
|
||||
},
|
||||
ScriptType::ImportMap => {
|
||||
|
||||
Reference in New Issue
Block a user