mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 11:09:18 +00:00
LibJS: Change Value::to_object(Heap& -> Interpreter&)
Passing a Heap& to it only to then call interpreter() on that is weird. Let's just give it the Interpreter& directly, like some of the other to_something() functions.
This commit is contained in:
parent
b8b7f84547
commit
1a1394f7a2
Notes:
sideshowbarker
2024-07-19 06:32:25 +09:00
Author: https://github.com/linusg
Commit: 1a1394f7a2
Pull-request: https://github.com/SerenityOS/serenity/pull/2270
Issue: https://github.com/SerenityOS/serenity/issues/2267
26 changed files with 56 additions and 57 deletions
|
@ -186,14 +186,13 @@ public:
|
|||
|
||||
String to_string(Interpreter&) const;
|
||||
PrimitiveString* to_primitive_string(Interpreter&);
|
||||
Value to_primitive(Interpreter&) const;
|
||||
Object* to_object(Interpreter&) const;
|
||||
bool to_boolean() const;
|
||||
Value to_number() const;
|
||||
i32 to_i32() const;
|
||||
double to_double() const;
|
||||
size_t to_size_t() const;
|
||||
Value to_primitive(Interpreter&) const;
|
||||
|
||||
Object* to_object(Heap&) const;
|
||||
|
||||
Value value_or(Value fallback) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue