LibJS: Convert new_declarative_environment() to NonnullGCPtr

This commit is contained in:
Linus Groh 2022-12-15 19:59:47 +00:00 committed by Andreas Kling
commit 107e06a396
Notes: sideshowbarker 2024-07-17 04:10:16 +09:00
6 changed files with 16 additions and 16 deletions

View file

@ -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();