diff --git a/Libraries/LibJS/Runtime/VM.cpp b/Libraries/LibJS/Runtime/VM.cpp index 6572cfd0704..904020d43d7 100644 --- a/Libraries/LibJS/Runtime/VM.cpp +++ b/Libraries/LibJS/Runtime/VM.cpp @@ -214,11 +214,6 @@ String const& VM::error_message(ErrorMessage type) const return message; } -Bytecode::Interpreter& VM::bytecode_interpreter() -{ - return *m_bytecode_interpreter; -} - struct ExecutionContextRootsCollector : public Cell::Visitor { virtual void visit_impl(GC::Cell& cell) override { diff --git a/Libraries/LibJS/Runtime/VM.h b/Libraries/LibJS/Runtime/VM.h index bd9e12349c3..7be4ec2c370 100644 --- a/Libraries/LibJS/Runtime/VM.h +++ b/Libraries/LibJS/Runtime/VM.h @@ -53,7 +53,7 @@ public: GC::Heap& heap() { return m_heap; } GC::Heap const& heap() const { return m_heap; } - Bytecode::Interpreter& bytecode_interpreter(); + Bytecode::Interpreter& bytecode_interpreter() { return *m_bytecode_interpreter; } void dump_backtrace() const;