mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibJS: Convert new_declarative_environment() to NonnullGCPtr
This commit is contained in:
parent
4c732abed5
commit
107e06a396
Notes:
sideshowbarker
2024-07-17 04:10:16 +09:00
Author: https://github.com/linusg
Commit: 107e06a396
Pull-request: https://github.com/SerenityOS/serenity/pull/16521
6 changed files with 16 additions and 16 deletions
|
@ -127,7 +127,7 @@ ThrowCompletionOr<Value> perform_shadow_realm_eval(VM& vm, StringView source_tex
|
|||
// NOTE: This would be unused due to step 11 and is omitted for that reason.
|
||||
|
||||
// 5. Let lexEnv be NewDeclarativeEnvironment(evalRealm.[[GlobalEnv]]).
|
||||
Environment* lexical_environment = new_declarative_environment(eval_realm.global_environment());
|
||||
Environment* lexical_environment = new_declarative_environment(eval_realm.global_environment()).ptr();
|
||||
|
||||
// 6. Let varEnv be evalRealm.[[GlobalEnv]].
|
||||
Environment* variable_environment = &eval_realm.global_environment();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue