mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 04:27:12 +02:00
LibJS: Reduce use of Interpreter in LexicalEnvironment
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 02:07:58 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3df604ad120
@@ -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