1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 01:54:57 +00:00

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