1
Fork 0
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:
Andreas Kling 2020-04-15 09:32:44 +02:00
parent 63499c2c9f
commit fa30355194
3 changed files with 26 additions and 3 deletions

View file

@ -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;