mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +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
@@ -60,7 +60,7 @@ BoundFunction* Function::bind(Value bound_this_value, Vector<Value> arguments)
|
||||
// FIXME: Null or undefined should be passed through in strict mode.
|
||||
return &interpreter().global_object();
|
||||
default:
|
||||
return bound_this_value.to_object(interpreter().heap());
|
||||
return bound_this_value.to_object(interpreter());
|
||||
}
|
||||
}();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user