LibJS: Make more Interpreter functions take a GlobalObject&

This commit is contained in:
Andreas Kling 2020-06-08 21:25:16 +02:00
parent 053863f35e
commit 5042e560ef
Notes: sideshowbarker 2024-07-19 05:44:44 +09:00
9 changed files with 47 additions and 47 deletions

View file

@ -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>)