diff options
author | Linus Groh <mail@linusgroh.de> | 2022-12-15 19:59:47 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-16 09:59:56 +0100 |
commit | 107e06a396e6c42b1dce4bf032ae356941ac4a48 (patch) | |
tree | 7d3d7cff0f45bba476f19316a65bedd2c696d11e /Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp | |
parent | 4c732abed52535071d9b47d0e70dcda63fe28e42 (diff) | |
download | serenity-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.cpp | 2 |
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(); |