diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-05-24 21:23:56 +0430 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-05-27 17:28:41 +0430 |
commit | 85794f8244706ad125ff936616edbcbac9ea4540 (patch) | |
tree | 8700f5e7b1c0454ad02b4f221c1e6e07d2dc6ec1 /Userland | |
parent | c5df55a8a2091a34afb604930bc9ce9c02a8f036 (diff) | |
download | serenity-85794f8244706ad125ff936616edbcbac9ea4540.zip |
LibWasm: Add a copy assignment operator to Value
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibWasm/AbstractMachine/AbstractMachine.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWasm/AbstractMachine/AbstractMachine.h b/Userland/Libraries/LibWasm/AbstractMachine/AbstractMachine.h index 8e5a4052c4..264c832e7c 100644 --- a/Userland/Libraries/LibWasm/AbstractMachine/AbstractMachine.h +++ b/Userland/Libraries/LibWasm/AbstractMachine/AbstractMachine.h @@ -108,6 +108,13 @@ public: return *this; } + Value& operator=(const Value& value) + { + m_value = value.m_value; + m_type = value.m_type; + return *this; + } + template<typename T> Optional<T> to() { |