mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
LibJS: Adding two values should convert them to primitives first
This commit is contained in:
parent
63499c2c9f
commit
fa30355194
3 changed files with 26 additions and 3 deletions
|
@ -147,6 +147,7 @@ public:
|
|||
Value to_number() const;
|
||||
i32 to_i32() const;
|
||||
double to_double() const;
|
||||
Value to_primitive(Interpreter&) const;
|
||||
|
||||
Object* to_object(Heap&) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue