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:
parent
7a6ad1b19c
commit
e649144a90
4 changed files with 10 additions and 5 deletions
|
@ -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)");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue