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

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -16,8 +16,7 @@ class ScriptExecutionContext {
public:
virtual ~ScriptExecutionContext();
// FIXME: This should not work this way long-term, interpreters should be on the stack.
virtual JS::Interpreter& interpreter() = 0;
virtual JS::Realm& realm() = 0;
};
}