diff options
author | Linus Groh <mail@linusgroh.de> | 2022-12-15 20:07:13 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-16 09:59:56 +0100 |
commit | e785c66f91f6cc04235703142c1b07a6cf458bfb (patch) | |
tree | 17a08c66acd16f37c86f47c6baf96c7a68593bd6 /Userland/Libraries/LibJS/Bytecode | |
parent | c132064ee9976d007bffb592ea8be19dd8584fb0 (diff) | |
download | serenity-e785c66f91f6cc04235703142c1b07a6cf458bfb.zip |
LibJS: Convert get_this_environment() to NonnullGCPtr
Diffstat (limited to 'Userland/Libraries/LibJS/Bytecode')
-rw-r--r-- | Userland/Libraries/LibJS/Bytecode/Op.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Bytecode/Op.cpp b/Userland/Libraries/LibJS/Bytecode/Op.cpp index 3ba225cad4..8799b39c31 100644 --- a/Userland/Libraries/LibJS/Bytecode/Op.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Op.cpp @@ -682,7 +682,7 @@ ThrowCompletionOr<void> SuperCall::execute_impl(Bytecode::Interpreter& interpret auto result = TRY(construct(vm, static_cast<FunctionObject&>(*func), move(arg_list), &new_target.as_function())); // 7. Let thisER be GetThisEnvironment(). - auto& this_environment = verify_cast<FunctionEnvironment>(get_this_environment(vm)); + auto& this_environment = verify_cast<FunctionEnvironment>(*get_this_environment(vm)); // 8. Perform ? thisER.BindThisValue(result). TRY(this_environment.bind_this_value(vm, result)); |