mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 16:44:57 +00:00
LibJS: Convert new_function_environment() to NonnullGCPtr
This commit is contained in:
parent
111a38c464
commit
208be8b86d
3 changed files with 3 additions and 3 deletions
|
@ -622,7 +622,7 @@ ThrowCompletionOr<void> ECMAScriptFunctionObject::prepare_for_ordinary_call(Exec
|
|||
callee_context.script_or_module = m_script_or_module;
|
||||
|
||||
// 7. Let localEnv be NewFunctionEnvironment(F, newTarget).
|
||||
auto* local_environment = new_function_environment(*this, new_target);
|
||||
auto local_environment = new_function_environment(*this, new_target);
|
||||
|
||||
// 8. Set the LexicalEnvironment of calleeContext to localEnv.
|
||||
callee_context.lexical_environment = local_environment;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue