1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:57:35 +00:00

LibJS: Implement the NewDeclarativeEnvironment() abstract operation

This commit is contained in:
Andreas Kling 2021-06-22 00:56:14 +02:00
parent c6baeca6d7
commit d8e9a176cd
4 changed files with 16 additions and 0 deletions

View file

@ -24,6 +24,11 @@ DeclarativeEnvironmentRecord::DeclarativeEnvironmentRecord(EnvironmentRecordType
{
}
DeclarativeEnvironmentRecord::DeclarativeEnvironmentRecord(EnvironmentRecord* parent_scope)
: EnvironmentRecord(parent_scope)
{
}
DeclarativeEnvironmentRecord::DeclarativeEnvironmentRecord(HashMap<FlyString, Variable> variables, EnvironmentRecord* parent_scope)
: EnvironmentRecord(parent_scope)
, m_variables(move(variables))