summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-08-27 01:03:50 +0100
committerLinus Groh <mail@linusgroh.de>2022-08-27 11:29:10 +0100
commit61bd9fef7d14b32e24c0d4d7841e569068d37629 (patch)
treebf4d2272e87789ba029617988e0a449cd07155ce /Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp
parent50428ea8d21045bbc3c5584a16496cff4a38fdc5 (diff)
downloadserenity-61bd9fef7d14b32e24c0d4d7841e569068d37629.zip
LibJS+LibWeb: Remove last uses of GlobalObject::associated_realm()
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp b/Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp
index 0ea85b9cd7..0cf00befef 100644
--- a/Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp
+++ b/Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp
@@ -61,7 +61,7 @@ ECMAScriptFunctionObject::ECMAScriptFunctionObject(FlyString name, String source
, m_private_environment(private_environment)
, m_formal_parameters(move(formal_parameters))
, m_ecmascript_code(ecmascript_code)
- , m_realm(global_object().associated_realm())
+ , m_realm(&prototype.shape().realm())
, m_source_text(move(source_text))
, m_class_field_initializer_name(move(class_field_initializer_name))
, m_strict(strict)