mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibJS: Move initialize_instance_elements() from VM to Object
This makes more sense as an Object method rather than living within the VM class for no good reason. Most of the other 7.3.xx AOs already work the same way. Also add spec comments while we're here.
This commit is contained in:
@@ -678,7 +678,7 @@ ThrowCompletionOr<void> SuperCall::execute_impl(Bytecode::Interpreter& interpret
|
||||
// NOTE: This is implied by the strong C++ type.
|
||||
|
||||
// 11. Perform ? InitializeInstanceElements(result, F).
|
||||
TRY(vm.initialize_instance_elements(*result, f));
|
||||
TRY(result->initialize_instance_elements(f));
|
||||
|
||||
// 12. Return result.
|
||||
interpreter.accumulator() = result;
|
||||
|
||||
Reference in New Issue
Block a user