mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00:00
LibJS: Support @@toPrimitive in ToPrimitive abstract operation
Fixes #3961.
This commit is contained in:
parent
f99644e75b
commit
585123127e
5 changed files with 73 additions and 19 deletions
|
@ -248,7 +248,7 @@ public:
|
|||
|
||||
String to_string(GlobalObject&, bool legacy_null_to_empty_string = false) const;
|
||||
PrimitiveString* to_primitive_string(GlobalObject&);
|
||||
Value to_primitive(PreferredType preferred_type = PreferredType::Default) const;
|
||||
Value to_primitive(GlobalObject&, PreferredType preferred_type = PreferredType::Default) const;
|
||||
Object* to_object(GlobalObject&) const;
|
||||
Value to_numeric(GlobalObject&) const;
|
||||
Value to_number(GlobalObject&) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue