mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
LibJS: Port Value::get_method() to GCPtr
This commit is contained in:
parent
9279b0780d
commit
b33b0d60e6
13 changed files with 36 additions and 36 deletions
|
@ -894,7 +894,7 @@ ThrowCompletionOr<void> GetMethod::execute_impl(Bytecode::Interpreter& interpret
|
|||
{
|
||||
auto& vm = interpreter.vm();
|
||||
auto identifier = interpreter.current_executable().get_identifier(m_property);
|
||||
auto* method = TRY(interpreter.accumulator().get_method(vm, identifier));
|
||||
auto method = TRY(interpreter.accumulator().get_method(vm, identifier));
|
||||
interpreter.accumulator() = method ?: js_undefined();
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue