1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:47:35 +00:00

LibWeb: Replace ScriptExecutionContext::interpreter() with realm()

Here goes another step towards Document not having a JS::Interpreter.
This commit is contained in:
Andreas Kling 2021-09-19 15:39:40 +02:00
parent 7a6ad1b19c
commit e649144a90
4 changed files with 10 additions and 5 deletions

View file

@ -173,7 +173,8 @@ public:
const String& source() const { return m_source; }
void set_source(const String& source) { m_source = source; }
virtual JS::Interpreter& interpreter() override;
JS::Realm& realm();
JS::Interpreter& interpreter();
JS::Value run_javascript(const StringView& source, const StringView& filename = "(unknown)");