mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibJS: Convert new_object_environment() to NonnullGCPtr
This commit is contained in:
parent
107e06a396
commit
111a38c464
Notes:
sideshowbarker
2024-07-17 07:35:03 +09:00
Author: https://github.com/linusg
Commit: 111a38c464
Pull-request: https://github.com/SerenityOS/serenity/pull/16521
5 changed files with 5 additions and 5 deletions
|
@ -621,7 +621,7 @@ Completion WithStatement::execute(Interpreter& interpreter) const
|
|||
auto* old_environment = vm.running_execution_context().lexical_environment;
|
||||
|
||||
// 4. Let newEnv be NewObjectEnvironment(obj, true, oldEnv).
|
||||
auto* new_environment = new_object_environment(*object, true, old_environment);
|
||||
auto new_environment = new_object_environment(*object, true, old_environment);
|
||||
|
||||
// 5. Set the running execution context's LexicalEnvironment to newEnv.
|
||||
vm.running_execution_context().lexical_environment = new_environment;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue