1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:17:44 +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

@ -414,7 +414,7 @@ JS::Value Document::run_javascript(const StringView& source)
}
dbg() << "Document::run_javascript('" << source << "') will run:";
program->dump(0);
return document().interpreter().run(*program);
return document().interpreter().run(document().interpreter().global_object(), *program);
}
NonnullRefPtr<Element> Document::create_element(const String& tag_name)