mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +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:
committed by
Andreas Kling
parent
b8b7f84547
commit
1a1394f7a2
@@ -50,7 +50,7 @@ void Reference::put(Interpreter& interpreter, Value value)
|
||||
return;
|
||||
}
|
||||
|
||||
auto* object = base().to_object(interpreter.heap());
|
||||
auto* object = base().to_object(interpreter);
|
||||
if (!object)
|
||||
return;
|
||||
|
||||
@@ -92,7 +92,7 @@ Value Reference::get(Interpreter& interpreter)
|
||||
return value;
|
||||
}
|
||||
|
||||
auto* object = base().to_object(interpreter.heap());
|
||||
auto* object = base().to_object(interpreter);
|
||||
if (!object)
|
||||
return {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user