mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57:35 +00:00
LibJS: Allow implicit Value construction from GC-allocated things
This commit is contained in:
parent
7912f33ea0
commit
32963cf74a
4 changed files with 10 additions and 10 deletions
|
@ -70,13 +70,13 @@ public:
|
|||
m_value.as_double = value;
|
||||
}
|
||||
|
||||
explicit Value(Object* object)
|
||||
Value(Object* object)
|
||||
: m_type(Type::Object)
|
||||
{
|
||||
m_value.as_object = object;
|
||||
}
|
||||
|
||||
explicit Value(PrimitiveString* string)
|
||||
Value(PrimitiveString* string)
|
||||
: m_type(Type::String)
|
||||
{
|
||||
m_value.as_string = string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue