mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibJS: Add Value::to_{index,length,integer_or_infinity} abstract operations
We should pay more attention to using the well-defined abstract operations from the spec rather than making up our own, often slightly different rules. This is another step in that direction.
This commit is contained in:
parent
6de4f1fcb3
commit
eaa85969c4
3 changed files with 66 additions and 1 deletions
|
@ -251,6 +251,9 @@ public:
|
|||
double to_double(GlobalObject&) const;
|
||||
i32 to_i32(GlobalObject&) const;
|
||||
size_t to_size_t(GlobalObject&) const;
|
||||
size_t to_length(GlobalObject&) const;
|
||||
size_t to_index(GlobalObject&) const;
|
||||
double to_integer_or_infinity(GlobalObject&) const;
|
||||
bool to_boolean() const;
|
||||
|
||||
String to_string_without_side_effects() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue