From 85794f8244706ad125ff936616edbcbac9ea4540 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Mon, 24 May 2021 21:23:56 +0430 Subject: [PATCH] LibWasm: Add a copy assignment operator to Value --- .../Libraries/LibWasm/AbstractMachine/AbstractMachine.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 Optional to() {