mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:37:34 +00:00
LibWasm: Add a copy assignment operator to Value
This commit is contained in:
parent
c5df55a8a2
commit
85794f8244
1 changed files with 7 additions and 0 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue