mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
LibJS: Make more Interpreter functions take a GlobalObject&
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 05:44:44 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/5042e560efa
@@ -75,7 +75,7 @@ void HTMLScriptElement::children_changed()
|
||||
parser.print_errors();
|
||||
return;
|
||||
}
|
||||
document().interpreter().run(*program);
|
||||
document().interpreter().run(document().interpreter().global_object(), *program);
|
||||
}
|
||||
|
||||
void HTMLScriptElement::inserted_into(Node& new_parent)
|
||||
@@ -112,7 +112,7 @@ void HTMLScriptElement::inserted_into(Node& new_parent)
|
||||
parser.print_errors();
|
||||
return;
|
||||
}
|
||||
document().interpreter().run(*program);
|
||||
document().interpreter().run(document().interpreter().global_object(), *program);
|
||||
}
|
||||
|
||||
void HTMLScriptElement::execute_script()
|
||||
@@ -123,7 +123,7 @@ void HTMLScriptElement::execute_script()
|
||||
parser.print_errors();
|
||||
return;
|
||||
}
|
||||
document().interpreter().run(*program);
|
||||
document().interpreter().run(document().interpreter().global_object(), *program);
|
||||
}
|
||||
|
||||
void HTMLScriptElement::prepare_script(Badge<HTMLDocumentParser>)
|
||||
|
||||
Reference in New Issue
Block a user