ScriptExecutionContext.h 459 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Weakable.h>
  8. #include <LibJS/Forward.h>
  9. #include <LibWeb/Forward.h>
  10. namespace Web::Bindings {
  11. class ScriptExecutionContext {
  12. public:
  13. virtual ~ScriptExecutionContext();
  14. // FIXME: This should not work this way long-term, interpreters should be on the stack.
  15. virtual JS::Interpreter& interpreter() = 0;
  16. };
  17. }