mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
CanGc fixes in errorevent.rs
(#33960)
* CanGc fixes in errorevent.rs Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Allow too_many_arguments to avoid lint error Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> --------- Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
575e885529
commit
7015e0fb5f
21 changed files with 79 additions and 51 deletions
|
@ -17,6 +17,7 @@ use crate::dom::htmlheadelement::HTMLHeadElement;
|
|||
use crate::dom::htmlscriptelement::SourceCode;
|
||||
use crate::dom::node::document_from_node;
|
||||
use crate::script_module::ScriptFetchOptions;
|
||||
use crate::script_runtime::CanGc;
|
||||
|
||||
pub fn load_script(head: &HTMLHeadElement) {
|
||||
let doc = document_from_node(head);
|
||||
|
@ -54,6 +55,7 @@ pub fn load_script(head: &HTMLHeadElement) {
|
|||
1,
|
||||
ScriptFetchOptions::default_classic_script(global),
|
||||
global.api_base_url(),
|
||||
CanGc::note(),
|
||||
);
|
||||
}
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue