diff --git a/Userland/Libraries/LibJS/Bytecode/Register.h b/Userland/Libraries/LibJS/Bytecode/Register.h index 43bc29c26b9..5fa4dc0234d 100644 --- a/Userland/Libraries/LibJS/Bytecode/Register.h +++ b/Userland/Libraries/LibJS/Bytecode/Register.h @@ -25,6 +25,8 @@ public: { } + bool operator==(Register reg) const { return m_index == reg.index(); } + u32 index() const { return m_index; } private: