mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibJS: Reduce use of Interpreter in LexicalEnvironment
This commit is contained in:
@@ -138,7 +138,7 @@ Value ScriptFunction::call()
|
||||
}
|
||||
}
|
||||
arguments.append({ parameter.name, value });
|
||||
vm().current_environment()->set(parameter.name, { value, DeclarationKind::Var });
|
||||
vm().current_environment()->set(global_object(), parameter.name, { value, DeclarationKind::Var });
|
||||
}
|
||||
return interpreter->execute_statement(global_object(), m_body, arguments, ScopeType::Function);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user