mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
LibWeb+LibJS: Add [LegacyNullToEmptyString] attribute
If specified, to_string() returns an empty string instead of "null" for null values.
This commit is contained in:
parent
1745e503aa
commit
bb22b04d44
3 changed files with 7 additions and 6 deletions
|
@ -241,7 +241,7 @@ public:
|
|||
i32 as_i32() const;
|
||||
size_t as_size_t() const;
|
||||
|
||||
String to_string(GlobalObject&) const;
|
||||
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;
|
||||
Object* to_object(GlobalObject&) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue