mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 18:37:36 +00:00
LibJS: Rename to_{i32,size_t}() to as_{i32,size_t}() for clarity
As these parameter-less overloads don't change the value's type and just assume Type::Number, naming them as_i32() and as_size_t() is more appropriate.
This commit is contained in:
parent
014cb1a55b
commit
36996bd720
6 changed files with 28 additions and 25 deletions
|
@ -184,15 +184,16 @@ public:
|
|||
|
||||
Function& as_function();
|
||||
|
||||
i32 as_i32() const;
|
||||
size_t as_size_t() const;
|
||||
|
||||
String to_string(Interpreter&) const;
|
||||
PrimitiveString* to_primitive_string(Interpreter&);
|
||||
Value to_primitive(Interpreter&) const;
|
||||
Object* to_object(Interpreter&) const;
|
||||
Value to_number(Interpreter&) const;
|
||||
double to_double(Interpreter&) const;
|
||||
i32 to_i32() const;
|
||||
i32 to_i32(Interpreter&) const;
|
||||
size_t to_size_t() const;
|
||||
size_t to_size_t(Interpreter&) const;
|
||||
bool to_boolean() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue