summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Bytecode
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-12-14 19:35:49 +0000
committerTim Flynn <trflynn89@pm.me>2022-12-15 06:56:37 -0500
commitbd40464195fe25c61dc3b64525bde9d46ddfcd9d (patch)
tree24880feae61f21cc9f7dd18793b810b889b225ff /Userland/Libraries/LibJS/Bytecode
parent6ae79a84df4ded7d3580a60fce5d1fa6e1ffd44d (diff)
downloadserenity-bd40464195fe25c61dc3b64525bde9d46ddfcd9d.zip
LibJS: Convert standalone construct() to NonnullGCPtr
Diffstat (limited to 'Userland/Libraries/LibJS/Bytecode')
-rw-r--r--Userland/Libraries/LibJS/Bytecode/Op.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Bytecode/Op.cpp b/Userland/Libraries/LibJS/Bytecode/Op.cpp
index 413413d7a3..ea3f6673cb 100644
--- a/Userland/Libraries/LibJS/Bytecode/Op.cpp
+++ b/Userland/Libraries/LibJS/Bytecode/Op.cpp
@@ -679,7 +679,7 @@ ThrowCompletionOr<void> SuperCall::execute_impl(Bytecode::Interpreter& interpret
return vm.throw_completion<TypeError>(ErrorType::NotAConstructor, "Super constructor");
// 6. Let result be ? Construct(func, argList, newTarget).
- auto* result = TRY(construct(vm, static_cast<FunctionObject&>(*func), move(arg_list), &new_target.as_function()));
+ 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));