summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/ScriptFunction.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-22 11:40:16 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-22 18:44:53 +0200
commit6ed6434bab2b136a64a7e8374dbc58b467017016 (patch)
tree4d884b94dfdec8fb38d433a3280b7cdf8496a3b7 /Userland/Libraries/LibJS/Runtime/ScriptFunction.cpp
parent49340f98f785dde0544f36b5fa422266c77a0858 (diff)
downloadserenity-6ed6434bab2b136a64a7e8374dbc58b467017016.zip
LibJS: Remove home object from DeclarativeEnvironmentRecord
According to the spec, [[HomeObject]] is an internal slot on function objects, and should always be accessed through there.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ScriptFunction.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/ScriptFunction.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ScriptFunction.cpp b/Userland/Libraries/LibJS/Runtime/ScriptFunction.cpp
index bb2678673d..57133f7db2 100644
--- a/Userland/Libraries/LibJS/Runtime/ScriptFunction.cpp
+++ b/Userland/Libraries/LibJS/Runtime/ScriptFunction.cpp
@@ -123,7 +123,6 @@ DeclarativeEnvironmentRecord* ScriptFunction::create_environment_record()
}
auto* environment = heap().allocate<DeclarativeEnvironmentRecord>(global_object(), move(variables), m_parent_scope, DeclarativeEnvironmentRecord::EnvironmentRecordType::Function);
- environment->set_home_object(home_object());
environment->set_current_function(*this);
if (m_is_arrow_function) {
if (is<DeclarativeEnvironmentRecord>(m_parent_scope))