summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-12-15 19:59:47 +0000
committerAndreas Kling <kling@serenityos.org>2022-12-16 09:59:56 +0100
commit107e06a396e6c42b1dce4bf032ae356941ac4a48 (patch)
tree7d3d7cff0f45bba476f19316a65bedd2c696d11e /Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp
parent4c732abed52535071d9b47d0e70dcda63fe28e42 (diff)
downloadserenity-107e06a396e6c42b1dce4bf032ae356941ac4a48.zip
LibJS: Convert new_declarative_environment() to NonnullGCPtr
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp b/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp
index b57869c9f9..072727c739 100644
--- a/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp
+++ b/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp
@@ -383,7 +383,7 @@ ThrowCompletionOr<Object*> get_prototype_from_constructor(VM& vm, FunctionObject
}
// 9.1.2.2 NewDeclarativeEnvironment ( E ), https://tc39.es/ecma262/#sec-newdeclarativeenvironment
-DeclarativeEnvironment* new_declarative_environment(Environment& environment)
+NonnullGCPtr<DeclarativeEnvironment> new_declarative_environment(Environment& environment)
{
auto& heap = environment.heap();